From patchwork Wed Jul 2 15:28:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 32997 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f197.google.com (mail-pd0-f197.google.com [209.85.192.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C7F5320560 for ; Wed, 2 Jul 2014 15:29:35 +0000 (UTC) Received: by mail-pd0-f197.google.com with SMTP id fp1sf52854569pdb.0 for ; Wed, 02 Jul 2014 08:29:35 -0700 (PDT) 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=5itY3RFzPHuhHhOhAdgn51qbYUbvu9eLQKoClOPdSGg=; b=bPtDGNxenj09eGOu6tClNhDrhoFHR/PifzKbXsZiGoBYlL86iPZx12gPsK3oqoZvbi fWIf8+EwaEsEHbSURR+3xhqi1UWX9YWzkX1fUGzwlZtc3BFQ6AyknVajrnqDYmEWUdv+ Y33/zWJI77hKWrfNM3hcUHad0aXES0bX57thHMiPFUtqhmyhpVv01c302FPFvGL0kwl9 EjEm8SsgrzBduSufR+K1gLZPRyd9+eyJFPo8TLNFLMtB/T8PsZN2cWAZ/3dyEqZu4JQh RlykkXNtwFJhh8wBmVJIZaF36RS/sCozPF7Zfx9h/QvYBL0Q+c4O3u5oBSFBv217BW/Q vPjA== X-Gm-Message-State: ALoCoQnB3yzB5hWG9A4uB5FSeEJzUQMNJKOTqaD3U3PFPAdAQIUdUlFpQ4dTxCwwnaa4Y80qC/9h X-Received: by 10.66.65.142 with SMTP id x14mr1864449pas.14.1404314975131; Wed, 02 Jul 2014 08:29:35 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.16.107 with SMTP id 98ls85157qga.80.gmail; Wed, 02 Jul 2014 08:29:35 -0700 (PDT) X-Received: by 10.52.228.163 with SMTP id sj3mr34694448vdc.30.1404314974965; Wed, 02 Jul 2014 08:29:34 -0700 (PDT) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id l3si7627457vdv.50.2014.07.02.08.29.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 02 Jul 2014 08:29:34 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.181 as permitted sender) client-ip=209.85.128.181; Received: by mail-ve0-f181.google.com with SMTP id db11so11234413veb.40 for ; Wed, 02 Jul 2014 08:29:34 -0700 (PDT) X-Received: by 10.221.26.10 with SMTP id rk10mr50121351vcb.0.1404314974876; Wed, 02 Jul 2014 08:29:34 -0700 (PDT) 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.221.37.5 with SMTP id tc5csp301908vcb; Wed, 2 Jul 2014 08:29:34 -0700 (PDT) X-Received: by 10.42.32.136 with SMTP id e8mr4671393icd.44.1404314974297; Wed, 02 Jul 2014 08:29:34 -0700 (PDT) Received: from mail-ie0-f178.google.com (mail-ie0-f178.google.com [209.85.223.178]) by mx.google.com with ESMTPS id 5si21506769igr.9.2014.07.02.08.29.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 02 Jul 2014 08:29:34 -0700 (PDT) Received-SPF: pass (google.com: domain of lee.jones@linaro.org designates 209.85.223.178 as permitted sender) client-ip=209.85.223.178; Received: by mail-ie0-f178.google.com with SMTP id rl12so327803iec.23 for ; Wed, 02 Jul 2014 08:29:34 -0700 (PDT) X-Received: by 10.43.159.67 with SMTP id lx3mr3746584icc.58.1404314974051; Wed, 02 Jul 2014 08:29:34 -0700 (PDT) Received: from localhost.localdomain (host109-148-235-194.range109-148.btcentralplus.com. [109.148.235.194]) by mx.google.com with ESMTPSA id d4sm23997781igc.5.2014.07.02.08.29.31 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 02 Jul 2014 08:29:33 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: sameo@linux.intel.com, linus.walleij@linaro.org, Lee Jones Subject: [PATCH 06/12] mfd: tps65910: Rid data size incompatibility warn when building for 64bit Date: Wed, 2 Jul 2014 16:28:38 +0100 Message-Id: <1404314924-23564-7-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1404314924-23564-1-git-send-email-lee.jones@linaro.org> References: <1404314924-23564-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=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.181 as permitted sender) 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: , Extinguishes: ../drivers/mfd/tps65910.c: In function ‘tps65910_parse_dt’: ../drivers/mfd/tps65910.c:404:14: warning: cast from pointer to integer of different size Signed-off-by: Lee Jones --- drivers/mfd/tps65910.c | 10 +++++----- include/linux/mfd/tps65910.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/mfd/tps65910.c b/drivers/mfd/tps65910.c index f9e42ea..f243e75 100644 --- a/drivers/mfd/tps65910.c +++ b/drivers/mfd/tps65910.c @@ -387,7 +387,7 @@ static const struct of_device_id tps65910_of_match[] = { MODULE_DEVICE_TABLE(of, tps65910_of_match); static struct tps65910_board *tps65910_parse_dt(struct i2c_client *client, - int *chip_id) + unsigned long *chip_id) { struct device_node *np = client->dev.of_node; struct tps65910_board *board_info; @@ -401,7 +401,7 @@ static struct tps65910_board *tps65910_parse_dt(struct i2c_client *client, return NULL; } - *chip_id = (int)match->data; + *chip_id = (unsigned long)match->data; board_info = devm_kzalloc(&client->dev, sizeof(*board_info), GFP_KERNEL); @@ -431,7 +431,7 @@ static struct tps65910_board *tps65910_parse_dt(struct i2c_client *client, #else static inline struct tps65910_board *tps65910_parse_dt(struct i2c_client *client, - int *chip_id) + unsigned long *chip_id) { return NULL; } @@ -453,14 +453,14 @@ static void tps65910_power_off(void) } static int tps65910_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) + const struct i2c_device_id *id) { struct tps65910 *tps65910; struct tps65910_board *pmic_plat_data; struct tps65910_board *of_pmic_plat_data = NULL; struct tps65910_platform_data *init_data; + unsigned long chip_id = id->driver_data; int ret = 0; - int chip_id = id->driver_data; pmic_plat_data = dev_get_platdata(&i2c->dev); diff --git a/include/linux/mfd/tps65910.h b/include/linux/mfd/tps65910.h index 16c2335..6483a6f 100644 --- a/include/linux/mfd/tps65910.h +++ b/include/linux/mfd/tps65910.h @@ -892,7 +892,7 @@ struct tps65910 { struct device *dev; struct i2c_client *i2c_client; struct regmap *regmap; - unsigned int id; + unsigned long id; /* Client devices */ struct tps65910_pmic *pmic;