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: 4425721 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E1F0FBEEAA for ; Thu, 26 Jun 2014 05:18:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1506420394 for ; Thu, 26 Jun 2014 05:18:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 20B0620395 for ; Thu, 26 Jun 2014 05:18:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753301AbaFZFSI (ORCPT ); Thu, 26 Jun 2014 01:18:08 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:50418 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751544AbaFZFSG (ORCPT ); Thu, 26 Jun 2014 01:18:06 -0400 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>; 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 Cc: naveenkrishna.ch@gmail.com, linux-arm-kernel@lists.infradead.org, sjg@chromium.org, linux-kernel@vger.kernel.org, wsa@the-dreams.de, cpgs@samsung.com, broonie@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 yYdYIHplJTYdgPpGUuLgihssExiFFzAyrGIUTS1ILihOSi8y0itOzC0uzUvXS87P3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q9k1diXfjTApWOj5RjTUr/e3c5iWpR6L18KQJU9E01j0C3VZVYtYWw99vbo9 JPTx9+u7Wwxkej5Ozxf7t6NJw05IpXvqnqmVZTdOrftcp8DotCDuzQIOh8ksi77nnNkhq23p o8RSnJFoqMVcVJwIAEYE89PJAgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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.