diff options
author | Johannes Stezenbach <devnull@localhost> | 2004-06-21 14:06:30 +0000 |
---|---|---|
committer | Johannes Stezenbach <devnull@localhost> | 2004-06-21 14:06:30 +0000 |
commit | 580e3994dc8a4255d306e257b0f5dcf537b1577a (patch) | |
tree | c6564279b52c787c11798d6d553f0555087e4815 /linux/drivers/media/dvb/frontends/stv0299.c | |
parent | d130ed470a8d96fb32e1e94b09abfbb45929fb2c (diff) | |
download | mediapointer-dvb-s2-580e3994dc8a4255d306e257b0f5dcf537b1577a.tar.gz mediapointer-dvb-s2-580e3994dc8a4255d306e257b0f5dcf537b1577a.tar.bz2 |
make stv0299_writereg() return -EREMOTEIO on errors, no -1 == -EPERM
Diffstat (limited to 'linux/drivers/media/dvb/frontends/stv0299.c')
-rw-r--r-- | linux/drivers/media/dvb/frontends/stv0299.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/frontends/stv0299.c b/linux/drivers/media/dvb/frontends/stv0299.c index 0f89b2f14..17d6a6035 100644 --- a/linux/drivers/media/dvb/frontends/stv0299.c +++ b/linux/drivers/media/dvb/frontends/stv0299.c @@ -282,7 +282,7 @@ static int stv0299_writereg (struct i2c_adapter *i2c, u8 reg, u8 data) dprintk("%s: writereg error (reg == 0x%02x, val == 0x%02x, " "ret == %i)\n", __FUNCTION__, reg, data, ret); - return (ret != 1) ? -1 : 0; + return (ret != 1) ? -EREMOTEIO : 0; } |