summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/stv0299.c
diff options
context:
space:
mode:
authorJohannes Stezenbach <devnull@localhost>2004-06-21 14:06:30 +0000
committerJohannes Stezenbach <devnull@localhost>2004-06-21 14:06:30 +0000
commit580e3994dc8a4255d306e257b0f5dcf537b1577a (patch)
treec6564279b52c787c11798d6d553f0555087e4815 /linux/drivers/media/dvb/frontends/stv0299.c
parentd130ed470a8d96fb32e1e94b09abfbb45929fb2c (diff)
downloadmediapointer-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.c2
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;
}