summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorNaveen Krishna Ch <ch.naveen@samsung.com>2014-06-26 10:44:58 +0530
committerHyungwon Hwang <human.hwang@samsung.com>2014-12-17 16:18:04 +0900
commite9a80a02432f09225c6f5e5a6cfba80ded232ebb (patch)
tree11f9dea9686ef753257ccb656dd1dddb5abc3ab0 /drivers
parent2035e75a8d99a1633c6fc65d6026a03aa977bf9a (diff)
downloadlinux-3.10-e9a80a02432f09225c6f5e5a6cfba80ded232ebb.tar.gz
linux-3.10-e9a80a02432f09225c6f5e5a6cfba80ded232ebb.tar.bz2
linux-3.10-e9a80a02432f09225c6f5e5a6cfba80ded232ebb.zip
i2c: exynos5: remove extra line and fix an assignment
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 <ch.naveen@samsung.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/i2c/busses/i2c-exynos5.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-exynos5.c b/drivers/i2c/busses/i2c-exynos5.c
index bfc4f0b4ec3..efe8a67ebba 100644
--- a/drivers/i2c/busses/i2c-exynos5.c
+++ b/drivers/i2c/busses/i2c-exynos5.c
@@ -526,7 +526,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;
@@ -549,7 +549,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.