summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/sp887x.c
diff options
context:
space:
mode:
authorAndreas Oberritter <devnull@localhost>2003-10-08 23:12:46 +0000
committerAndreas Oberritter <devnull@localhost>2003-10-08 23:12:46 +0000
commit211cbd901aa45d1e325986fb9709ea774c4f29f7 (patch)
treeca4aabb2420f9555202e568f17d05b2016557d66 /linux/drivers/media/dvb/frontends/sp887x.c
parent20bef24e32fbba770db1a3f6f2481745ea25603e (diff)
downloadmediapointer-dvb-s2-211cbd901aa45d1e325986fb9709ea774c4f29f7.tar.gz
mediapointer-dvb-s2-211cbd901aa45d1e325986fb9709ea774c4f29f7.tar.bz2
- allow private data to be associated with i2c devices
- fixed some return values in i2c device attach functions
Diffstat (limited to 'linux/drivers/media/dvb/frontends/sp887x.c')
-rw-r--r--linux/drivers/media/dvb/frontends/sp887x.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/linux/drivers/media/dvb/frontends/sp887x.c b/linux/drivers/media/dvb/frontends/sp887x.c
index 8aec93860..57b24ebaa 100644
--- a/linux/drivers/media/dvb/frontends/sp887x.c
+++ b/linux/drivers/media/dvb/frontends/sp887x.c
@@ -561,7 +561,7 @@ int sp887x_ioctl (struct dvb_frontend *fe, unsigned int cmd, void *arg)
static
-int sp887x_attach (struct dvb_i2c_bus *i2c)
+int sp887x_attach (struct dvb_i2c_bus *i2c, void **data)
{
struct i2c_msg msg = { addr: 0x70, flags: 0, buf: NULL, len: 0 };
@@ -570,14 +570,12 @@ int sp887x_attach (struct dvb_i2c_bus *i2c)
if (i2c->xfer (i2c, &msg, 1) != 1)
return -ENODEV;
- dvb_register_frontend (sp887x_ioctl, i2c, NULL, &sp887x_info);
-
- return 0;
+ return dvb_register_frontend (sp887x_ioctl, i2c, NULL, &sp887x_info);
}
static
-void sp887x_detach (struct dvb_i2c_bus *i2c)
+void sp887x_detach (struct dvb_i2c_bus *i2c, void *data)
{
dprintk ("%s\n", __FUNCTION__);
dvb_unregister_frontend (sp887x_ioctl, i2c);