From patchwork Thu Jun 26 05:14:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naveen Krishna Chatradhi X-Patchwork-Id: 4425741 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 2B1999F319 for ; Thu, 26 Jun 2014 05:20:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 219E020394 for ; Thu, 26 Jun 2014 05:20:54 +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 E48CC2038D for ; Thu, 26 Jun 2014 05:20:52 +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 1X024y-0002B1-Vc; Thu, 26 Jun 2014 05:18:36 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X024v-00028J-ID for linux-arm-kernel@lists.infradead.org; Thu, 26 Jun 2014 05:18:34 +0000 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N7R00LYAG22JD20@mailout3.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 26 Jun 2014 14:18:03 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.126]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id E5.87.19452.A0DABA35; Thu, 26 Jun 2014 14:18:02 +0900 (KST) X-AuditID: cbfee68e-b7fb96d000004bfc-5e-53abad0a88cf Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 55.DF.04943.A0DABA35; Thu, 26 Jun 2014 14:18:02 +0900 (KST) Received: from chnaveen-ubuntu.sisodomain.com ([107.108.83.161]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N7R00M03G1WZ9E0@mmp2.samsung.com>; Thu, 26 Jun 2014 14:18:02 +0900 (KST) From: Naveen Krishna Chatradhi To: linux-samsung-soc@vger.kernel.org, linux-i2c@vger.kernel.org Subject: [PATCH 2/2 v2] i2c: exynos5: remove extra line and fix an assignment Date: Thu, 26 Jun 2014 10:44:58 +0530 Message-id: <1403759698-15624-2-git-send-email-ch.naveen@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1403759698-15624-1-git-send-email-ch.naveen@samsung.com> References: <1403759698-15624-1-git-send-email-ch.naveen@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpnkeLIzCtJLcpLzFFi42JZI2JSp8u1dnWwwasuK4upD5+wWbw8pGmx 6fE1VouOv18YLS7vmsNmMeP8PiaLRdv+M1t827KN0WLliVnMDpwesxsusnjsnHWX3WPTqk42 j81L6j36tqxi9Dh56gmLx+dNcgHsUVw2Kak5mWWpRfp2CVwZP6Z5FjRxVzTNPcvYwNjE2cXI ySEhYCLRPvEPM4QtJnHh3nq2LkYuDiGBpYwSD6bdYoIpWjznCCNEYjqjxMnPO5ghnH4miXk7 2thBqtgEzCQOLloNZosIOEjMW/udHaSIWWAjo8Se5RdYuxg5OIQFfCVez8kCqWERUJX4d+wm 2GpeAVeJO41XwUokBBQk5kyyAQlzCrhJPO36DjZSCKhk2qMdrCAjJQS2sUs8nPOQHWKOgMS3 yYdYIHplJTYdgPpGUuLgihssExiFFzAyrGIUTS1ILihOSi8y0itOzC0u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V1Xf9tfq9k1diXfjTApWOj5RjTUr/e3c5iWpR6L18KQJU9E01j0C3VZVYtYWw99vbo9 JPTx9+u7Wwxkej5Ozxf7t6NJw05IpXvqnqmVZTdOrftcp8DotCDuzQIOh8ksi77nnNkhq23p o8RSnJFoqMVcVJwIAEYE89PJAgAA 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-20140625_221833_780996_F2E6CC7C X-CRM114-Status: UNSURE ( 8.81 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.0 (-----) Cc: wsa@the-dreams.de, sjg@chromium.org, linux-kernel@vger.kernel.org, broonie@kernel.org, cpgs@samsung.com, naveenkrishna.ch@gmail.com, linux-arm-kernel@lists.infradead.org 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=-1.9 required=5.0 tests=BAYES_00, 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 This patch does the following in exynos5_i2c_message_start() function 1. Fixes an assignment As, "i2c_auto_conf" is initialized to '0' at the beginning of the function and HSI2C_READ_WRITE is defined as (1u << 16) Using "|=" for the first assignment is more readable. 2. Removes an extra line Signed-off-by: Naveen Krishna Chatradhi --- Changes since v1: Edited commit message for clarity drivers/i2c/busses/i2c-exynos5.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-exynos5.c b/drivers/i2c/busses/i2c-exynos5.c index 0d1a7bc..4c2e6f3 100644 --- a/drivers/i2c/busses/i2c-exynos5.c +++ b/drivers/i2c/busses/i2c-exynos5.c @@ -525,7 +525,7 @@ static void exynos5_i2c_message_start(struct exynos5_i2c *i2c, int stop) if (i2c->msg->flags & I2C_M_RD) { i2c_ctl |= HSI2C_RXCHON; - i2c_auto_conf = HSI2C_READ_WRITE; + i2c_auto_conf |= HSI2C_READ_WRITE; trig_lvl = (i2c->msg->len > i2c->variant->fifo_depth) ? (i2c->variant->fifo_depth * 3 / 4) : i2c->msg->len; @@ -548,7 +548,6 @@ static void exynos5_i2c_message_start(struct exynos5_i2c *i2c, int stop) writel(fifo_ctl, i2c->regs + HSI2C_FIFO_CTL); writel(i2c_ctl, i2c->regs + HSI2C_CTL); - /* * Enable interrupts before starting the transfer so that we don't * miss any INT_I2C interrupts.