diff options
author | Oliver Endriss <o.endriss@gmx.de> | 2007-07-23 18:59:55 +0200 |
---|---|---|
committer | Oliver Endriss <o.endriss@gmx.de> | 2007-07-23 18:59:55 +0200 |
commit | f3f02f5343b042a516acb67637a00ee26ca06d79 (patch) | |
tree | 03fa67891f17941bcc5dc802068e0d76f6b45f55 /linux/drivers/media/dvb/ttpci/av7110_v4l.c | |
parent | 056321ad6ae880ef351ccdf1180598cdeee63895 (diff) | |
download | mediapointer-dvb-s2-f3f02f5343b042a516acb67637a00ee26ca06d79.tar.gz mediapointer-dvb-s2-f3f02f5343b042a516acb67637a00ee26ca06d79.tar.bz2 |
dvb-ttpci/saa7146: Replace saa7146_i2c_transfer by generic i2c_transfer
From: Oliver Endriss <o.endriss@gmx.de>
Convert av7110_v4l.c to use i2c_transfer() instead of saa7146_i2c_transfer().
Make saa7146_i2c_transfer() static.
Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Diffstat (limited to 'linux/drivers/media/dvb/ttpci/av7110_v4l.c')
-rw-r--r-- | linux/drivers/media/dvb/ttpci/av7110_v4l.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/ttpci/av7110_v4l.c b/linux/drivers/media/dvb/ttpci/av7110_v4l.c index 87afaebc0..76cca0032 100644 --- a/linux/drivers/media/dvb/ttpci/av7110_v4l.c +++ b/linux/drivers/media/dvb/ttpci/av7110_v4l.c @@ -129,23 +129,25 @@ static struct v4l2_input inputs[4] = { static int ves1820_writereg(struct saa7146_dev *dev, u8 addr, u8 reg, u8 data) { + struct av7110 *av7110 = dev->ext_priv; u8 buf[] = { 0x00, reg, data }; struct i2c_msg msg = { .addr = addr, .flags = 0, .buf = buf, .len = 3 }; dprintk(4, "dev: %p\n", dev); - if (1 != saa7146_i2c_transfer(dev, &msg, 1, 1)) + if (1 != i2c_transfer(&av7110->i2c_adap, &msg, 1)) return -1; return 0; } static int tuner_write(struct saa7146_dev *dev, u8 addr, u8 data [4]) { + struct av7110 *av7110 = dev->ext_priv; struct i2c_msg msg = { .addr = addr, .flags = 0, .buf = data, .len = 4 }; dprintk(4, "dev: %p\n", dev); - if (1 != saa7146_i2c_transfer(dev, &msg, 1, 1)) + if (1 != i2c_transfer(&av7110->i2c_adap, &msg, 1)) return -1; return 0; } |