Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1333128 > unrolled thread

[PATCH v2 2/3] i2c: iproc: Fix typo in the driver

Started byRay Jui <ray.jui@broadcom.com>
First post2016-02-12 22:20 +0100
Last post2016-02-12 22:50 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v2 2/3] i2c: iproc: Fix typo in the driver Ray Jui <ray.jui@broadcom.com> - 2016-02-12 22:20 +0100
    Re: [PATCH v2 2/3] i2c: iproc: Fix typo in the driver Wolfram Sang <wsa@the-dreams.de> - 2016-02-12 22:50 +0100

#1333128 — [PATCH v2 2/3] i2c: iproc: Fix typo in the driver

FromRay Jui <ray.jui@broadcom.com>
Date2016-02-12 22:20 +0100
Subject[PATCH v2 2/3] i2c: iproc: Fix typo in the driver
Message-ID<r1tia-3WT-3@gated-at.bofh.it>
From: Ray Jui <rjui@broadcom.com>

Fix typo in the driver from 'I2C_TIMEOUT_MESC' to 'I2C_TIMEOUT_MSEC'

Signed-off-by: Ray Jui <rjui@broadcom.com>
Reviewed-by: Scott Branden <sbranden@broadcom.com>
---
 drivers/i2c/busses/i2c-bcm-iproc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/i2c/busses/i2c-bcm-iproc.c b/drivers/i2c/busses/i2c-bcm-iproc.c
index ce062d3..c368159 100644
--- a/drivers/i2c/busses/i2c-bcm-iproc.c
+++ b/drivers/i2c/busses/i2c-bcm-iproc.c
@@ -76,7 +76,7 @@
 #define M_RX_DATA_SHIFT              0
 #define M_RX_DATA_MASK               0xff
 
-#define I2C_TIMEOUT_MESC             100
+#define I2C_TIMEOUT_MSEC             100
 #define M_TX_RX_FIFO_SIZE            64
 
 enum bus_speed_index {
@@ -207,7 +207,7 @@ static int bcm_iproc_i2c_xfer_single_msg(struct bcm_iproc_i2c_dev *iproc_i2c,
 	int ret, i;
 	u8 addr;
 	u32 val;
-	unsigned long time_left = msecs_to_jiffies(I2C_TIMEOUT_MESC);
+	unsigned long time_left = msecs_to_jiffies(I2C_TIMEOUT_MSEC);
 
 	/* check if bus is busy */
 	if (!!(readl(iproc_i2c->base + M_CMD_OFFSET) &
-- 
1.9.1

[toc] | [next] | [standalone]


#1333148

FromWolfram Sang <wsa@the-dreams.de>
Date2016-02-12 22:50 +0100
Message-ID<r1tLc-49e-5@gated-at.bofh.it>
In reply to#1333128

[Multipart message — attachments visible in raw view] — view raw

On Fri, Feb 12, 2016 at 01:10:42PM -0800, Ray Jui wrote:
> From: Ray Jui <rjui@broadcom.com>
> 
> Fix typo in the driver from 'I2C_TIMEOUT_MESC' to 'I2C_TIMEOUT_MSEC'
> 
> Signed-off-by: Ray Jui <rjui@broadcom.com>
> Reviewed-by: Scott Branden <sbranden@broadcom.com>

Applied to for-next, thanks!

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web