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: 6498591 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C96879F38C for ; Thu, 28 May 2015 13:15:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EFB27205C4 for ; Thu, 28 May 2015 13:15:37 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 76E8D20529 for ; Thu, 28 May 2015 13:15:34 +0000 (UTC) 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 1Yxxc7-00015a-QS; Thu, 28 May 2015 13:12:47 +0000 Received: from mail-pd0-f182.google.com ([209.85.192.182]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YxxWq-00057z-Aa for linux-arm-kernel@lists.infradead.org; Thu, 28 May 2015 13:07:23 +0000 Received: by pdea3 with SMTP id a3so41364627pde.2 for ; Thu, 28 May 2015 06:06:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Oee7XACTBKHu9NdOKa+2zPD7kDgP5poJY3045V7kohY=; b=MqpDZoKdwTzurX/oHfl/AtvP3NxJApPmarLXWPYTO9jG29c1bJMBwXtaLH+3GerfHF jbAT0UE82yLr+9KXRPt4e/QshcXJxIbRXKT/UtL8RAS7F5xhPoD57LCJOnLiBViAN237 XQ2Sy7rwr8o2mX8TB8PYiCTHJOvlzqjDoX4Yb9R1575SDrn4lyEKqsqzRQ8B4n4mZbIS Bx13QY8Td34qNBuuxEJVrgiQo8xYLi+9Kyif+lYb3QwEFQLW62jn+IlVRInAC64g4ARb sDz8Hz4eXmFztWKXLI/pWWP4uj3v7GH7Dq2c2W1mTy37F6xsysVVdyQ/6TyPZra+GVqF yfcQ== X-Gm-Message-State: ALoCoQn5Czczmgzd082lZByOBF4453AQGumqzZl6qRpeXysF64c2OuU8nPKX63xxK2ajtBUQ/1iO 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150528_060720_460840_2EBB11CF X-CRM114-Status: UNSURE ( 9.55 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.8 (-) Cc: Yipeng Yao , Vaibhav Hiremath , linux-arm-kernel@lists.infradead.org, Wolfram Sang X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Robert Jarzmik --- 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);