From patchwork Wed Jul 2 15:28:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 32995 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f71.google.com (mail-pa0-f71.google.com [209.85.220.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EBAD420560 for ; Wed, 2 Jul 2014 15:29:17 +0000 (UTC) Received: by mail-pa0-f71.google.com with SMTP id eu11sf59105120pac.10 for ; Wed, 02 Jul 2014 08:29:17 -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=csh5CtLfQsaSQdAoahLSpndxdG17eKTQKvqOVuzVHNw=; b=MPdEvp457odp8R7mjLogj4DW1xVKz/h2PmKk211oLjWHqrog5NgJuJ+cn4egfsUGvn 6mFnlak0k0/DK7EOTg1Spb6IZ4bcTwWbyxmnTinuc7Rdb5NM0XACcz+NvGOqKOlGhAcQ SR9OTlvivsVkaMYaHnuKBvNFYirz2TAxNET1G59AsyLkrbkKamHugWS27Ep9ClgNeO4z rallCbEJr5vdjsmNY8BL7iw2k7pXDgniET0K9RPAlL/DLNeiZyxRyNVII52kzRdyTqSM 9cxtD0okQX2PwKeReJCpAjViVmOZ14y+Dzk/XcCc6seHIX8nwAf9ePegXLHEATTDAgga tE9Q== X-Gm-Message-State: ALoCoQlovGltyfTcV0ZWyAoW2iAqRZi9CdtRITpg6mUQ+bC0hGHlgcEDxdTpAIIat8irUD59AuxO X-Received: by 10.66.169.79 with SMTP id ac15mr1846491pac.48.1404314957213; Wed, 02 Jul 2014 08:29:17 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.23.210 with SMTP id 76ls89910qgp.33.gmail; Wed, 02 Jul 2014 08:29:17 -0700 (PDT) X-Received: by 10.58.186.172 with SMTP id fl12mr837342vec.39.1404314957093; Wed, 02 Jul 2014 08:29:17 -0700 (PDT) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id sa4si13011333vdc.98.2014.07.02.08.29.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 02 Jul 2014 08:29:17 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.176 as permitted sender) client-ip=209.85.128.176; Received: by mail-ve0-f176.google.com with SMTP id db12so11268753veb.21 for ; Wed, 02 Jul 2014 08:29:17 -0700 (PDT) X-Received: by 10.52.23.71 with SMTP id k7mr41981209vdf.27.1404314957021; Wed, 02 Jul 2014 08:29:17 -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 tc5csp301889vcb; Wed, 2 Jul 2014 08:29:16 -0700 (PDT) X-Received: by 10.50.221.99 with SMTP id qd3mr5432866igc.3.1404314956378; Wed, 02 Jul 2014 08:29:16 -0700 (PDT) Received: from mail-ig0-f177.google.com (mail-ig0-f177.google.com [209.85.213.177]) by mx.google.com with ESMTPS id iu2si14512060icb.64.2014.07.02.08.29.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 02 Jul 2014 08:29:16 -0700 (PDT) Received-SPF: pass (google.com: domain of lee.jones@linaro.org designates 209.85.213.177 as permitted sender) client-ip=209.85.213.177; Received: by mail-ig0-f177.google.com with SMTP id c1so387534igq.10 for ; Wed, 02 Jul 2014 08:29:16 -0700 (PDT) X-Received: by 10.43.156.77 with SMTP id ll13mr3020678icc.81.1404314956152; Wed, 02 Jul 2014 08:29:16 -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.06 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 02 Jul 2014 08:29:07 -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 04/12] mfd: stmpe: Rid data size incompatibility warn when building for 64bit Date: Wed, 2 Jul 2014 16:28:36 +0100 Message-Id: <1404314924-23564-5-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.176 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/stmpe-i2c.c: In function ‘stmpe_i2c_probe’: ../drivers/mfd/stmpe-i2c.c:88:13: warning: cast from pointer to integer of different size partnum = (int)of_id->data; Signed-off-by: Lee Jones Reviewed-by: Linus Walleij --- drivers/mfd/stmpe-i2c.c | 4 ++-- drivers/mfd/stmpe.c | 2 +- drivers/mfd/stmpe.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mfd/stmpe-i2c.c b/drivers/mfd/stmpe-i2c.c index a45f9c0..5c05403 100644 --- a/drivers/mfd/stmpe-i2c.c +++ b/drivers/mfd/stmpe-i2c.c @@ -68,7 +68,7 @@ MODULE_DEVICE_TABLE(of, stmpe_of_match); static int stmpe_i2c_probe(struct i2c_client *i2c, const struct i2c_device_id *id) { - int partnum; + enum stmpe_partnum partnum; const struct of_device_id *of_id; i2c_ci.data = (void *)id; @@ -85,7 +85,7 @@ stmpe_i2c_probe(struct i2c_client *i2c, const struct i2c_device_id *id) dev_info(&i2c->dev, "matching on node name, compatible is preferred\n"); partnum = id->driver_data; } else - partnum = (int)of_id->data; + partnum = (enum stmpe_partnum)of_id->data; return stmpe_probe(&i2c_ci, partnum); } diff --git a/drivers/mfd/stmpe.c b/drivers/mfd/stmpe.c index 3b6bfa7..02a17c3 100644 --- a/drivers/mfd/stmpe.c +++ b/drivers/mfd/stmpe.c @@ -1147,7 +1147,7 @@ static void stmpe_of_probe(struct stmpe_platform_data *pdata, } /* Called from client specific probe routines */ -int stmpe_probe(struct stmpe_client_info *ci, int partnum) +int stmpe_probe(struct stmpe_client_info *ci, enum stmpe_partnum partnum) { struct stmpe_platform_data *pdata = dev_get_platdata(ci->dev); struct device_node *np = ci->dev->of_node; diff --git a/drivers/mfd/stmpe.h b/drivers/mfd/stmpe.h index 9e4d21d..2d045f2 100644 --- a/drivers/mfd/stmpe.h +++ b/drivers/mfd/stmpe.h @@ -97,7 +97,7 @@ struct stmpe_client_info { void (*init)(struct stmpe *stmpe); }; -int stmpe_probe(struct stmpe_client_info *ci, int partnum); +int stmpe_probe(struct stmpe_client_info *ci, enum stmpe_partnum partnum); int stmpe_remove(struct stmpe *stmpe); #define STMPE_ICR_LSB_HIGH (1 << 2)