From 580e3994dc8a4255d306e257b0f5dcf537b1577a Mon Sep 17 00:00:00 2001 From: Johannes Stezenbach Date: Mon, 21 Jun 2004 14:06:30 +0000 Subject: make stv0299_writereg() return -EREMOTEIO on errors, no -1 == -EPERM --- linux/drivers/media/dvb/frontends/stv0299.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux/drivers/media/dvb/frontends/stv0299.c') 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; } -- cgit v1.2.3