diff options
author | Markus Rechberger <mrechberger@gmail.com> | 2006-02-03 02:12:18 +0100 |
---|---|---|
committer | Markus Rechberger <mrechberger@gmail.com> | 2006-02-03 02:12:18 +0100 |
commit | 625ec5cda0bfcfc8f97536babde1f9e22c19040d (patch) | |
tree | e6d5f5147735f032aa8e5526cf2743a6668fc8ea /linux/drivers/media/video/em28xx/em28xx-i2c.c | |
parent | 7cbe2e0b6fbc2ac4f43de5c5ba7dfacf5cd54c52 (diff) | |
download | mediapointer-dvb-s2-625ec5cda0bfcfc8f97536babde1f9e22c19040d.tar.gz mediapointer-dvb-s2-625ec5cda0bfcfc8f97536babde1f9e22c19040d.tar.bz2 |
fixed i2c return value, conversion mdelay to msleep
From: Markus Rechberger <mrechberger@gmail.com>
fixed i2c return value, conversion mdelay to msleep
Signed-off-by: Markus Rechberger <mrechberger@gmail.com>
Diffstat (limited to 'linux/drivers/media/video/em28xx/em28xx-i2c.c')
-rw-r--r-- | linux/drivers/media/video/em28xx/em28xx-i2c.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linux/drivers/media/video/em28xx/em28xx-i2c.c b/linux/drivers/media/video/em28xx/em28xx-i2c.c index 59b13ff37..b531f2839 100644 --- a/linux/drivers/media/video/em28xx/em28xx-i2c.c +++ b/linux/drivers/media/video/em28xx/em28xx-i2c.c @@ -78,7 +78,7 @@ static int em2800_i2c_send_max4(struct em28xx *dev, unsigned char addr, ret = dev->em28xx_read_reg(dev, 0x05); if (ret == 0x80 + len - 1) return len; - mdelay(5); + msleep(5); } em28xx_warn("i2c write timed out\n"); return -EIO; @@ -138,7 +138,7 @@ static int em2800_i2c_check_for_device(struct em28xx *dev, unsigned char addr) return -ENODEV; else if (msg == 0x84) return 0; - mdelay(5); + msleep(5); } return -ENODEV; } @@ -278,9 +278,9 @@ static int em28xx_i2c_xfer(struct i2c_adapter *i2c_adap, msgs[i].buf, msgs[i].len, i == num - 1); - if (rc < 0) - goto err; } + if (rc < 0) + goto err; if (i2c_debug>=2) printk("\n"); } |