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: 6727431 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 07487C05AC for ; Mon, 6 Jul 2015 19:30:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 28B30205EB for ; Mon, 6 Jul 2015 19:30:18 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5C6F9205EC for ; Mon, 6 Jul 2015 19:30:13 +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 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-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=c4cWGDEnvz0VgfofzxspELRfFGjANqXl5p+12gJ/OaQ=; b=ZYRGj2T24xzEko9nbH3J1bkaLvsx4R/UXvWYnbM82TmsxaiOLq9F0cjNtjgT0f9xRG kAe8UyhKvHdLNrWY/JIbSwuIOAet0MqiMJddSG0uB6c4OdQDMc/stYNsRuieziudTwMD SYOwye6a2iz+yW5CkuRslWytgQUO4KIGW39X3LmZfKMyXqGIwLvGDXXC/XMmBkCJ8P82 tCa7Qwg1h5dtH5DvzJd9CPxsDFpJTPVC1r8wK2ib5z9NlIG5nslqyLl3i6y7bsihjbp8 mzodRvX8LMtg0ldCGXZyL6HmtU3eliB9u835/FtaFB/YYWnrcSxGNmlaZkYye8c6cD2n eMFA== X-Gm-Message-State: ALoCoQmgznXxsyW4JBM2VKseh3eNCNWtTcvqukjjVoPBo1CWzIZJj5vRmNH90z5B2BM3ssBxDkIU 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-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+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 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; }