From patchwork Thu Jan 23 15:05:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 23628 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f200.google.com (mail-qc0-f200.google.com [209.85.216.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A8C94203BE for ; Thu, 23 Jan 2014 15:08:40 +0000 (UTC) Received: by mail-qc0-f200.google.com with SMTP id e9sf3139452qcy.7 for ; Thu, 23 Jan 2014 07:08:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe:content-type :content-transfer-encoding; bh=sToathfyzQAhcTvobJKRfcSqIaxogBdbhGCmt/lNONM=; b=jLzTZ0rPPtwUATMyPZkeDv8/ybqLbVZLIQvVyg/NIQHT+oOUuTipzH1M1NGtruTndu HWaihx+4TGu0k5Ha7HUaulvwt9asYKtnXeGGmBUk3uKK4BQbF6rV7TWQ1bcIVwQQ/s8e 14q7KO45JAUiLrkxe4zceSZbqh6AZsEIni6UjhJrxlxy06JprlObuokH7xliRX+2PATE /J0V75fiIS2YqQgJCqy8sYwQJG8/Xt2tGoxxGheUH3jV0hc1mYvciepY/I096rGPFXr1 0hAMbhvkP+TSCAz+vOvxJ4fik/T3OOInrDHXj6SlUxrNqGW/nTAm0Nhg1wMfujBQUMck E2XQ== X-Gm-Message-State: ALoCoQmM/5wEE3W6E2+eYGaAymEmeDpAIJ5PTSSEtM+JcTFg4y3Xj2Gqjd9FfVWpJYCwxqyB5me7 X-Received: by 10.224.121.70 with SMTP id g6mr3136473qar.1.1390489719877; Thu, 23 Jan 2014 07:08:39 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.15.201 with SMTP id z9ls84364qec.82.gmail; Thu, 23 Jan 2014 07:08:39 -0800 (PST) X-Received: by 10.220.69.20 with SMTP id x20mr24060vci.69.1390489719793; Thu, 23 Jan 2014 07:08:39 -0800 (PST) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id x3si6818618vcn.9.2014.01.23.07.08.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 23 Jan 2014 07:08:39 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id ij19so1109906vcb.20 for ; Thu, 23 Jan 2014 07:08:39 -0800 (PST) X-Received: by 10.220.106.84 with SMTP id w20mr4795550vco.18.1390489719729; Thu, 23 Jan 2014 07:08:39 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp32977vcz; Thu, 23 Jan 2014 07:08:39 -0800 (PST) X-Received: by 10.195.13.113 with SMTP id ex17mr7257102wjd.0.1390489718853; Thu, 23 Jan 2014 07:08:38 -0800 (PST) Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45]) by mx.google.com with ESMTPS id lp8si9351803wic.73.2014.01.23.07.08.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 23 Jan 2014 07:08:38 -0800 (PST) Received-SPF: neutral (google.com: 74.125.82.45 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.82.45; Received: by mail-wg0-f45.google.com with SMTP id n12so1653129wgh.24 for ; Thu, 23 Jan 2014 07:08:38 -0800 (PST) X-Received: by 10.180.11.233 with SMTP id t9mr3312563wib.1.1390489718403; Thu, 23 Jan 2014 07:08:38 -0800 (PST) Received: from localhost.localdomain ([80.76.198.141]) by mx.google.com with ESMTPSA id co15sm23021599wjb.12.2014.01.23.07.08.36 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 23 Jan 2014 07:08:37 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: linus.walleij@linaro.org, sameo@linux.intel.com, Lee Jones Subject: [PATCH 3/4] mfd: wm8994-core: Naturalise cross-architecture discrepancies Date: Thu, 23 Jan 2014 15:05:55 +0000 Message-Id: <1390489556-9434-3-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1390489556-9434-1-git-send-email-lee.jones@linaro.org> References: <1390489556-9434-1-git-send-email-lee.jones@linaro.org> MIME-Version: 1.0 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , If we compile the WM8994 for a 64bit architecture we receive the following warnings: drivers/mfd/wm8994-core.c: In function ‘wm8994_i2c_probe’: drivers/mfd/wm8994-core.c:639:19: warning: cast from pointer to integer of different size wm8994->type = (int)of_id->data; ^ Signed-off-by: Lee Jones --- drivers/mfd/wm8994-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/wm8994-core.c b/drivers/mfd/wm8994-core.c index ba04f1b..e6fab94 100644 --- a/drivers/mfd/wm8994-core.c +++ b/drivers/mfd/wm8994-core.c @@ -636,7 +636,7 @@ static int wm8994_i2c_probe(struct i2c_client *i2c, if (i2c->dev.of_node) { of_id = of_match_device(wm8994_of_match, &i2c->dev); if (of_id) - wm8994->type = (int)of_id->data; + wm8994->type = (enum wm8994_type)of_id->data; } else { wm8994->type = id->driver_data; }