From patchwork Mon Jul 6 19:24:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaibhav Hiremath X-Patchwork-Id: 50790 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F118C229FC for ; Mon, 6 Jul 2015 19:29:38 +0000 (UTC) Received: by laer2 with SMTP id r2sf50293055lae.3 for ; Mon, 06 Jul 2015 12:29:37 -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:subject:date:message-id :in-reply-to:references:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:cc:mime-version :content-type:content-transfer-encoding:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list; bh=+5HCaodCKqDGyY42qRi/4/loVSb8bDPcbc8w3H37Or8=; b=ZU7XJRm8zL9wczAykypMF4uDoEsmjfxPpx65RkcWaAN/00v1kdqWcawXja1HoJT9tw YlaoV1oan6DX9yUdCy+jM8JCn3b8PhkVfU1sGwZk3SR5UpHM0l2XPjMNA1+tr4zhXLMH 6UuODhRcEYVEIHpw7+UDjO5iuNdNvAYfK59EIiRuFbUlk0uyOALX6vXKWUalQYesY9ol NHp8Mgx3ngxJd0lTO5Sp+AXqTMHuL2+udGsLPCAR6k0VipoxPrDttpK0u0dOYG8XFAX5 drLH8lqMih/ddN/ekVYXoSvWEXf5CaWkXbsBP70A8mpMgtUHjTkYGLNVsMrZldhDMj9V THFQ== X-Gm-Message-State: ALoCoQly0DU33OYiX1eEp46GZo3TviOKHq/e0cLMhiYY4429C9Vw0PpjGUgbrnMmGejcdDXZ0zbM X-Received: by 10.112.255.66 with SMTP id ao2mr204171lbd.15.1436210977699; Mon, 06 Jul 2015 12:29:37 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.162 with SMTP id n2ls731616laf.82.gmail; Mon, 06 Jul 2015 12:29:37 -0700 (PDT) X-Received: by 10.112.40.99 with SMTP id w3mr413467lbk.55.1436210977405; Mon, 06 Jul 2015 12:29:37 -0700 (PDT) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id c4si16029187laf.113.2015.07.06.12.29.37 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Jul 2015 12:29:37 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by laar3 with SMTP id r3so168510568laa.0 for ; Mon, 06 Jul 2015 12:29:37 -0700 (PDT) X-Received: by 10.112.198.74 with SMTP id ja10mr419585lbc.19.1436210977225; Mon, 06 Jul 2015 12:29:37 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp1921872lbb; Mon, 6 Jul 2015 12:29:36 -0700 (PDT) X-Received: by 10.66.66.202 with SMTP id h10mr733296pat.145.1436210970995; Mon, 06 Jul 2015 12:29:30 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id op7si30419043pbc.109.2015.07.06.12.29.30 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Jul 2015 12:29:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZCC41-0007QU-HO; Mon, 06 Jul 2015 19:28:25 +0000 Received: from mail-pa0-f52.google.com ([209.85.220.52]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZCC3r-0007Fv-LL for linux-arm-kernel@lists.infradead.org; Mon, 06 Jul 2015 19:28:16 +0000 Received: by pacgz10 with SMTP id gz10so26172723pac.3 for ; Mon, 06 Jul 2015 12:27:54 -0700 (PDT) X-Received: by 10.68.219.101 with SMTP id pn5mr787837pbc.77.1436210874811; Mon, 06 Jul 2015 12:27:54 -0700 (PDT) Received: from localhost.localdomain ([202.62.77.106]) by mx.google.com with ESMTPSA id x7sm19293964pas.28.2015.07.06.12.27.50 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 06 Jul 2015 12:27:53 -0700 (PDT) From: Vaibhav Hiremath To: linux-i2c@vger.kernel.org Subject: [PATCH-v3 04/11] i2c: pxa: Remove compile warnning in 64bit mode Date: Tue, 7 Jul 2015 00:54:48 +0530 Message-Id: <1436210695-19159-5-git-send-email-vaibhav.hiremath@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1436210695-19159-1-git-send-email-vaibhav.hiremath@linaro.org> References: <1436210695-19159-1-git-send-email-vaibhav.hiremath@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150706_122815_727206_BEAFA52A X-CRM114-Status: GOOD ( 12.45 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.220.52 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.220.52 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Cc: devicetree@vger.kernel.org, wsa@the-dreams.de, linux-kernel@vger.kernel.org, Vaibhav Hiremath , robh+dt@kernel.org, Yipeng Yao , robert.jarzmik@free.fr, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: vaibhav.hiremath@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.215.45 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Yipeng Yao Fix below warning message, coming from 64 bit toolchain. drivers/i2c/busses/i2c-pxa.c:1237:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] Signed-off-by: Yipeng Yao [vaibhav.hiremath@linaro.org: Updated Changelog] Signed-off-by: Vaibhav Hiremath Cc: Wolfram Sang Acked-by: Robert Jarzmik --- drivers/i2c/busses/i2c-pxa.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c index 632008f..4c92694 100644 --- a/drivers/i2c/busses/i2c-pxa.c +++ b/drivers/i2c/busses/i2c-pxa.c @@ -1116,7 +1116,9 @@ static int i2c_pxa_probe_dt(struct platform_device *pdev, struct pxa_i2c *i2c, i2c->use_pio = 1; if (of_get_property(np, "mrvl,i2c-fast-mode", NULL)) i2c->fast_mode = 1; - *i2c_types = (u32)(of_id->data); + + *i2c_types = (long)(of_id->data); + return 0; }