diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-07-06 12:41:21 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-07-27 17:53:37 -0300 |
commit | 7464aa50c6529c1da6a80496911e16244119fd16 (patch) | |
tree | cc9c7ce4f516cca2ea2a74b5e1e3c0f62036e45a /drivers/media/dvb/frontends/nxt6000.c | |
parent | d316b5fba37621a70893af56968ed899b1179a63 (diff) | |
download | linux-stable-7464aa50c6529c1da6a80496911e16244119fd16.tar.gz linux-stable-7464aa50c6529c1da6a80496911e16244119fd16.tar.bz2 linux-stable-7464aa50c6529c1da6a80496911e16244119fd16.zip |
[media] nxt6000: i2c bus error should return -EIO
data from/to userspace. Don't mix it with I2C bus error (-EIO).
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/nxt6000.c')
-rw-r--r-- | drivers/media/dvb/frontends/nxt6000.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/nxt6000.c b/drivers/media/dvb/frontends/nxt6000.c index a763ec756f7f..6599b8fea9e9 100644 --- a/drivers/media/dvb/frontends/nxt6000.c +++ b/drivers/media/dvb/frontends/nxt6000.c @@ -50,7 +50,7 @@ static int nxt6000_writereg(struct nxt6000_state* state, u8 reg, u8 data) if ((ret = i2c_transfer(state->i2c, &msg, 1)) != 1) dprintk("nxt6000: nxt6000_write error (reg: 0x%02X, data: 0x%02X, ret: %d)\n", reg, data, ret); - return (ret != 1) ? -EFAULT : 0; + return (ret != 1) ? -EIO : 0; } static u8 nxt6000_readreg(struct nxt6000_state* state, u8 reg) |