From patchwork Thu May 28 13:03:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaibhav Hiremath X-Patchwork-Id: 49110 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id AE471202A3 for ; Thu, 28 May 2015 13:07:04 +0000 (UTC) Received: by lbcak1 with SMTP id ak1sf10422117lbc.2 for ; Thu, 28 May 2015 06:07:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=8hrHaMQ1NXYklHR6cffxqse/E3YB59xwpjePA+mwlhI=; b=ibj7pqkMERpyLHWmuDOiP4madwrBVrKEObg9BeZR0lXQJxPXWoBtkFD5joy+z5+3BI cL8tRmhKKzOU/5xMhfZgKtfc3zGHM+T6nyNjEoJSvY+Ov8rys3QgU0JfnKbAUatbZa/F 6wrECfGYo9NbDNxkdKY5NXkPumsRNbYwFkfuqAt7p9NxlxmTmGuhDNp3Q2w2CWfKFG6F gKu80E3N3a86KZhscSwoB2iDO4jlI1UyHVs2psdUofWG7Jk9DfV/VBkRrODy3jy2yrQj aSaQDlkIZtKKTKfFOjtAf3qpH4QSxq+DM5A25pWVZUI20frPAkz88Voe05DL3BVK+iv8 B4eA== X-Gm-Message-State: ALoCoQlpSx48/DuzJO4wLz37YvbVvyWo/IFanSLminyXGgWzenEEny2z5ITRy0Z8bXVBjIyPaTn6 X-Received: by 10.152.184.73 with SMTP id es9mr2650445lac.4.1432818423703; Thu, 28 May 2015 06:07:03 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.9.37 with SMTP id w5ls174705laa.77.gmail; Thu, 28 May 2015 06:07:03 -0700 (PDT) X-Received: by 10.112.220.7 with SMTP id ps7mr2681769lbc.72.1432818423554; Thu, 28 May 2015 06:07:03 -0700 (PDT) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com. [209.85.217.173]) by mx.google.com with ESMTPS id lf11si1928359lac.24.2015.05.28.06.07.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 May 2015 06:07:03 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) client-ip=209.85.217.173; Received: by lbcmx3 with SMTP id mx3so27801856lbc.1 for ; Thu, 28 May 2015 06:07:03 -0700 (PDT) X-Received: by 10.152.44.166 with SMTP id f6mr2725145lam.86.1432818423440; Thu, 28 May 2015 06:07:03 -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 hn6csp1144587lbb; Thu, 28 May 2015 06:07:02 -0700 (PDT) X-Received: by 10.66.139.70 with SMTP id qw6mr5357892pab.112.1432818421533; Thu, 28 May 2015 06:07:01 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id em5si3485083pbb.256.2015.05.28.06.07.00; Thu, 28 May 2015 06:07:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-i2c-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753779AbbE1NHA (ORCPT + 1 other); Thu, 28 May 2015 09:07:00 -0400 Received: from mail-pd0-f169.google.com ([209.85.192.169]:35959 "EHLO mail-pd0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752113AbbE1NG7 (ORCPT ); Thu, 28 May 2015 09:06:59 -0400 Received: by pdfh10 with SMTP id h10so41422128pdf.3 for ; Thu, 28 May 2015 06:06:59 -0700 (PDT) X-Received: by 10.70.134.35 with SMTP id ph3mr5255442pdb.91.1432818418995; Thu, 28 May 2015 06:06:58 -0700 (PDT) Received: from localhost.localdomain ([202.62.77.106]) by mx.google.com with ESMTPSA id dc5sm2392557pbc.53.2015.05.28.06.06.55 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 May 2015 06:06:57 -0700 (PDT) From: Vaibhav Hiremath To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , linux-arm-kernel@lists.infradead.org, Yipeng Yao , Vaibhav Hiremath Subject: [PATCH 09/12] i2c: pxa: Remove compile warnning in 64bit mode Date: Thu, 28 May 2015 18:33:41 +0530 Message-Id: <1432818224-17070-10-git-send-email-vaibhav.hiremath@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1432818224-17070-1-git-send-email-vaibhav.hiremath@linaro.org> References: <1432818224-17070-1-git-send-email-vaibhav.hiremath@linaro.org> Sender: linux-i2c-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-i2c@vger.kernel.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.217.173 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 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 Signed-off-by: Vaibhav Hiremath --- drivers/i2c/busses/i2c-pxa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c index a3ac97c..cf6c383 100644 --- a/drivers/i2c/busses/i2c-pxa.c +++ b/drivers/i2c/busses/i2c-pxa.c @@ -1223,7 +1223,7 @@ 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); if (of_device_is_compatible(np, "mrvl,mmp-twsi")) { ret = of_property_read_u32(np, "mrvl,i2c-ilcr", &i2c->ilcr);