diff options
author | Markus Rechberger <mrechberger@gmail.com> | 2006-02-07 03:49:11 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-02-07 03:49:11 -0500 |
commit | e8e41da46dca6b33e990b48ee379503d25b4da65 (patch) | |
tree | 792a51056771f14c8fa7b88a094c06b5369c61a8 /drivers/media/video/em28xx/em28xx-i2c.c | |
parent | df42eaf2b2f2c43969d879dbcafa698c666fe8a9 (diff) |
V4L/DVB (3306): Fixed i2c return value, conversion mdelay to msleep
fixed i2c return value, conversion mdelay to msleep
Signed-off-by: Markus Rechberger <mrechberger@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/em28xx/em28xx-i2c.c')
-rw-r--r-- | drivers/media/video/em28xx/em28xx-i2c.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/em28xx/em28xx-i2c.c b/drivers/media/video/em28xx/em28xx-i2c.c index 0591a705b7a1..6ca8631bc36d 100644 --- a/drivers/media/video/em28xx/em28xx-i2c.c +++ b/drivers/media/video/em28xx/em28xx-i2c.c | |||
@@ -78,7 +78,7 @@ static int em2800_i2c_send_max4(struct em28xx *dev, unsigned char addr, | |||
78 | ret = dev->em28xx_read_reg(dev, 0x05); | 78 | ret = dev->em28xx_read_reg(dev, 0x05); |
79 | if (ret == 0x80 + len - 1) | 79 | if (ret == 0x80 + len - 1) |
80 | return len; | 80 | return len; |
81 | mdelay(5); | 81 | msleep(5); |
82 | } | 82 | } |
83 | em28xx_warn("i2c write timed out\n"); | 83 | em28xx_warn("i2c write timed out\n"); |
84 | return -EIO; | 84 | return -EIO; |
@@ -138,7 +138,7 @@ static int em2800_i2c_check_for_device(struct em28xx *dev, unsigned char addr) | |||
138 | return -ENODEV; | 138 | return -ENODEV; |
139 | else if (msg == 0x84) | 139 | else if (msg == 0x84) |
140 | return 0; | 140 | return 0; |
141 | mdelay(5); | 141 | msleep(5); |
142 | } | 142 | } |
143 | return -ENODEV; | 143 | return -ENODEV; |
144 | } | 144 | } |
@@ -278,9 +278,9 @@ static int em28xx_i2c_xfer(struct i2c_adapter *i2c_adap, | |||
278 | msgs[i].buf, | 278 | msgs[i].buf, |
279 | msgs[i].len, | 279 | msgs[i].len, |
280 | i == num - 1); | 280 | i == num - 1); |
281 | if (rc < 0) | ||
282 | goto err; | ||
283 | } | 281 | } |
282 | if (rc < 0) | ||
283 | goto err; | ||
284 | if (i2c_debug>=2) | 284 | if (i2c_debug>=2) |
285 | printk("\n"); | 285 | printk("\n"); |
286 | } | 286 | } |