From patchwork Thu Jan 23 15:05:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 23629 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f71.google.com (mail-vb0-f71.google.com [209.85.212.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 174AD203BE for ; Thu, 23 Jan 2014 15:08:43 +0000 (UTC) Received: by mail-vb0-f71.google.com with SMTP id p5sf3173849vbn.6 for ; Thu, 23 Jan 2014 07:08:42 -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=vyf16pUuHUMXFj4yH/k6OLdsz48mCBfKDoeBEU17bJo=; b=WUIHTcxRnYJvqwjZyUUvP+TivJxGMscE1ppbXZfNkyWO32bWNxWl37j5qaHX4v5ZNQ V5DBwA0stcMnJDIMXgVdLAZq9BBgPsHTTc3CONdEywYmBnyT5Gfp7yMRtXv9LtnsMV3U rj9z5KHpXlwbtntA4uoDO07/9ZcvPu9nX9SJLZeNLXAwPcz7yAchIJit/rZ3KhDG5qii kvi48iFfZFljYrXSEjAOIBq0chPjDNlh8+m1hbPYjEFxnPSbF8KMIdEbyFxg+/B3Jxu6 WrwyiVzhoKwE6tP+KK4HmZAZv66JGzXwb76MA5hnROSxMRa+oyly2itx7010OzzBloyi HT8Q== X-Gm-Message-State: ALoCoQk5vbb18xMR5d62Ej+WNzqpiOKZ/rSLzdECZs9c3TEXbCSHTM/2kDkVzPLJK/1RxD8ej6uq X-Received: by 10.58.85.3 with SMTP id d3mr317457vez.40.1390489722278; Thu, 23 Jan 2014 07:08:42 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.119.231 with SMTP id kx7ls353809qeb.29.gmail; Thu, 23 Jan 2014 07:08:42 -0800 (PST) X-Received: by 10.220.12.193 with SMTP id y1mr13407vcy.75.1390489722049; Thu, 23 Jan 2014 07:08:42 -0800 (PST) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id c2si6799398vct.142.2014.01.23.07.08.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 23 Jan 2014 07:08:42 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.173 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.173; Received: by mail-vc0-f173.google.com with SMTP id ld13so1124804vcb.32 for ; Thu, 23 Jan 2014 07:08:42 -0800 (PST) X-Received: by 10.221.3.70 with SMTP id nx6mr357050vcb.45.1390489721985; Thu, 23 Jan 2014 07:08:41 -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 u4csp32981vcz; Thu, 23 Jan 2014 07:08:41 -0800 (PST) X-Received: by 10.195.12.200 with SMTP id es8mr1810448wjd.77.1390489721179; Thu, 23 Jan 2014 07:08:41 -0800 (PST) Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) by mx.google.com with ESMTPS id cu2si9217035wjb.27.2014.01.23.07.08.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 23 Jan 2014 07:08:41 -0800 (PST) Received-SPF: neutral (google.com: 74.125.82.43 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.82.43; Received: by mail-wg0-f43.google.com with SMTP id y10so1633523wgg.10 for ; Thu, 23 Jan 2014 07:08:40 -0800 (PST) X-Received: by 10.180.94.67 with SMTP id da3mr8284736wib.38.1390489720573; Thu, 23 Jan 2014 07:08:40 -0800 (PST) Received: from localhost.localdomain ([80.76.198.141]) by mx.google.com with ESMTPSA id co15sm23021599wjb.12.2014.01.23.07.08.38 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 23 Jan 2014 07:08:39 -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 4/4] mfd: tps65217: Naturalise cross-architecture discrepancies Date: Thu, 23 Jan 2014 15:05:56 +0000 Message-Id: <1390489556-9434-4-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.173 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 TPS65217 for a 64bit architecture we receive the following warnings: drivers/mfd/tps65217.c: In function ‘tps65217_probe’: drivers/mfd/tps65217.c:173:13: warning: cast from pointer to integer of different size chip_id = (unsigned int)match->data; ^ Signed-off-by: Lee Jones --- drivers/mfd/tps65217.c | 4 ++-- include/linux/mfd/tps65217.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mfd/tps65217.c b/drivers/mfd/tps65217.c index 6939ae5..3cc4c70 100644 --- a/drivers/mfd/tps65217.c +++ b/drivers/mfd/tps65217.c @@ -158,7 +158,7 @@ static int tps65217_probe(struct i2c_client *client, { struct tps65217 *tps; unsigned int version; - unsigned int chip_id = ids->driver_data; + unsigned long chip_id = ids->driver_data; const struct of_device_id *match; bool status_off = false; int ret; @@ -170,7 +170,7 @@ static int tps65217_probe(struct i2c_client *client, "Failed to find matching dt id\n"); return -EINVAL; } - chip_id = (unsigned int)match->data; + chip_id = (unsigned long)match->data; status_off = of_property_read_bool(client->dev.of_node, "ti,pmic-shutdown-controller"); } diff --git a/include/linux/mfd/tps65217.h b/include/linux/mfd/tps65217.h index a5a7f01..54b5458 100644 --- a/include/linux/mfd/tps65217.h +++ b/include/linux/mfd/tps65217.h @@ -252,7 +252,7 @@ struct tps65217_board { struct tps65217 { struct device *dev; struct tps65217_board *pdata; - unsigned int id; + unsigned long id; struct regulator_desc desc[TPS65217_NUM_REGULATOR]; struct regulator_dev *rdev[TPS65217_NUM_REGULATOR]; struct regmap *regmap; @@ -263,7 +263,7 @@ static inline struct tps65217 *dev_to_tps65217(struct device *dev) return dev_get_drvdata(dev); } -static inline int tps65217_chip_id(struct tps65217 *tps65217) +static inline unsigned long tps65217_chip_id(struct tps65217 *tps65217) { return tps65217->id; }