From patchwork Fri Jan 10 03:03:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pankaj Dubey X-Patchwork-Id: 3464231 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 865029F1C4 for ; Fri, 10 Jan 2014 02:49:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AE8CC2010E for ; Fri, 10 Jan 2014 02:49:39 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (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 BBDF62010B for ; Fri, 10 Jan 2014 02:49:38 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W1SAB-0005xi-8F; Fri, 10 Jan 2014 02:49:35 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W1SA8-00078X-LZ; Fri, 10 Jan 2014 02:49:32 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W1SA5-00077p-EN for linux-arm-kernel@lists.infradead.org; Fri, 10 Jan 2014 02:49:31 +0000 MIME-version: 1.0 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MZ500MA6ZTICCA0@mailout2.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 10 Jan 2014 11:48:54 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.49]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 07.32.10364.69F5FC25; Fri, 10 Jan 2014 11:48:54 +0900 (KST) X-AuditID: cbfee690-b7f266d00000287c-42-52cf5f960b19 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id F3.3F.29263.69F5FC25; Fri, 10 Jan 2014 11:48:54 +0900 (KST) Received: from localhost.localdomain ([12.23.120.139]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MZ5005T4ZTE1QE0@mmp1.samsung.com>; Fri, 10 Jan 2014 11:48:54 +0900 (KST) From: Pankaj Dubey To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/1] drivers: i2c: silence a compile warning in i2c-s3c2410.c Date: Fri, 10 Jan 2014 12:03:45 +0900 Message-id: <1389323025-4478-1-git-send-email-pankaj.dubey@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprBIsWRmVeSWpSXmKPExsVy+t8zQ91p8eeDDG5PlLboXXCVzWLT42us Fh1/vzBazDi/j8li0dYv7BYrT8xidmDz2Lyk3qNvyypGj5OnnrB4fN4kF8ASxWWTkpqTWZZa pG+XwJVxaesvtoL7PBXtU54yNzCe5+pi5OSQEDCR6P16kBHCFpO4cG89WxcjF4eQwDJGiVPH fjB3MXKAFT3/zwlSIySwiFGi820kiM0rICjxY/I9FpASZgF5iSOXskHCzALqEpPmLWKGGNPG JHH63kYWkASbgK7Ek/dzmUFsEQFvicln/rKDFDELTGCUmPjnDRNIQljAV+J2x2dWEJtFQFXi zOMPTBDL3CUeHn3PBnGPgsScSTYgvRICm9gl1l5+ywxRLyDxbfIhFogaWYlNB5gh/pKUOLji BssERpFZSM6ehXD2LCRnL2BkXsUom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Ur WH2U+2G6ziLmKZs/zk88su/jFpu/DFGu/N/9Z0mGX/5ttlx38vGtm/btfRPwz2r6x1Xv9jSb 7PBpPV/zKaT7pdLkKeeO37YPePVgAtvL2c9c/FdXCMeU9B2XV/vh0u7ptc756Jt/PjVKLMUZ iYZazEXFiQDshgv2CAMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140109_214929_709867_72686FEC X-CRM114-Status: UNSURE ( 8.55 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -6.9 (------) Cc: Pankaj Dubey , Kukjin Kim , linux-i2c@vger.kernel.org, Wolfram Sang X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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, 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 If used 64 bit compiler GCC warns that: drivers/i2c/busses/i2c-s3c2410.c: In function ‘s3c24xx_get_device_quirks’: drivers/i2c/busses/i2c-s3c2410.c:168:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] This patch fixes this by converting "unsigned int" to "unsigned long". CC: Kukjin Kim CC: Wolfram Sang CC: linux-i2c@vger.kernel.org Signed-off-by: Pankaj Dubey --- drivers/i2c/busses/i2c-s3c2410.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-s3c2410.c b/drivers/i2c/busses/i2c-s3c2410.c index bf8fb94..447dd98 100644 --- a/drivers/i2c/busses/i2c-s3c2410.c +++ b/drivers/i2c/busses/i2c-s3c2410.c @@ -101,7 +101,7 @@ enum s3c24xx_i2c_state { struct s3c24xx_i2c { wait_queue_head_t wait; - unsigned int quirks; + unsigned long quirks; unsigned int suspended:1; struct i2c_msg *msg; @@ -160,12 +160,13 @@ MODULE_DEVICE_TABLE(of, s3c24xx_i2c_match); * Get controller type either from device tree or platform device variant. */ -static inline unsigned int s3c24xx_get_device_quirks(struct platform_device *pdev) +static inline unsigned long + s3c24xx_get_device_quirks(struct platform_device *pdev) { if (pdev->dev.of_node) { const struct of_device_id *match; match = of_match_node(s3c24xx_i2c_match, pdev->dev.of_node); - return (unsigned int)match->data; + return (unsigned long)match->data; } return platform_get_device_id(pdev)->driver_data;