summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/alps_tdlb7.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/alps_tdlb7.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/alps_tdlb7.c')
-rw-r--r--linux/drivers/media/dvb/frontends/alps_tdlb7.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/linux/drivers/media/dvb/frontends/alps_tdlb7.c b/linux/drivers/media/dvb/frontends/alps_tdlb7.c
index c96122e27..847567abd 100644
--- a/linux/drivers/media/dvb/frontends/alps_tdlb7.c
+++ b/linux/drivers/media/dvb/frontends/alps_tdlb7.c
@@ -661,7 +661,7 @@ static int tdlb7_ioctl (struct dvb_frontend *fe, unsigned int cmd, void *arg)
}
-static int tdlb7_attach (struct dvb_i2c_bus *i2c)
+static int tdlb7_attach (struct dvb_i2c_bus *i2c, void **data)
{
struct i2c_msg msg = { addr: 0x71, flags: 0, buf: NULL, len: 0 };
@@ -672,13 +672,11 @@ static int tdlb7_attach (struct dvb_i2c_bus *i2c)
sp8870_firmware_upload(i2c);
- dvb_register_frontend (tdlb7_ioctl, i2c, NULL, &tdlb7_info);
-
- return 0;
+ return dvb_register_frontend (tdlb7_ioctl, i2c, NULL, &tdlb7_info);
}
-static void tdlb7_detach (struct dvb_i2c_bus *i2c)
+static void tdlb7_detach (struct dvb_i2c_bus *i2c, void *data)
{
dprintk ("%s\n", __FUNCTION__);