aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/common/saa7146_core.c1
-rw-r--r--drivers/media/common/saa7146_i2c.c2
-rw-r--r--drivers/media/dvb/ttpci/av7110_v4l.c6
-rw-r--r--include/media/saa7146.h1
4 files changed, 5 insertions, 5 deletions
diff --git a/drivers/media/common/saa7146_core.c b/drivers/media/common/saa7146_core.c
index ba6701e97671..12cda9eebd12 100644
--- a/drivers/media/common/saa7146_core.c
+++ b/drivers/media/common/saa7146_core.c
@@ -548,7 +548,6 @@ EXPORT_SYMBOL_GPL(saa7146_wait_for_debi_done);
548 548
549EXPORT_SYMBOL_GPL(saa7146_setgpio); 549EXPORT_SYMBOL_GPL(saa7146_setgpio);
550 550
551EXPORT_SYMBOL_GPL(saa7146_i2c_transfer);
552EXPORT_SYMBOL_GPL(saa7146_i2c_adapter_prepare); 551EXPORT_SYMBOL_GPL(saa7146_i2c_adapter_prepare);
553 552
554EXPORT_SYMBOL_GPL(saa7146_debug); 553EXPORT_SYMBOL_GPL(saa7146_debug);
diff --git a/drivers/media/common/saa7146_i2c.c b/drivers/media/common/saa7146_i2c.c
index 8c85efc26527..f823286341eb 100644
--- a/drivers/media/common/saa7146_i2c.c
+++ b/drivers/media/common/saa7146_i2c.c
@@ -277,7 +277,7 @@ static int saa7146_i2c_writeout(struct saa7146_dev *dev, u32* dword, int short_d
277 return 0; 277 return 0;
278} 278}
279 279
280int saa7146_i2c_transfer(struct saa7146_dev *dev, const struct i2c_msg *msgs, int num, int retries) 280static int saa7146_i2c_transfer(struct saa7146_dev *dev, const struct i2c_msg *msgs, int num, int retries)
281{ 281{
282 int i = 0, count = 0; 282 int i = 0, count = 0;
283 u32* buffer = dev->d_i2c.cpu_addr; 283 u32* buffer = dev->d_i2c.cpu_addr;
diff --git a/drivers/media/dvb/ttpci/av7110_v4l.c b/drivers/media/dvb/ttpci/av7110_v4l.c
index 87afaebc0703..76cca003252f 100644
--- a/drivers/media/dvb/ttpci/av7110_v4l.c
+++ b/drivers/media/dvb/ttpci/av7110_v4l.c
@@ -129,23 +129,25 @@ static struct v4l2_input inputs[4] = {
129 129
130static int ves1820_writereg(struct saa7146_dev *dev, u8 addr, u8 reg, u8 data) 130static int ves1820_writereg(struct saa7146_dev *dev, u8 addr, u8 reg, u8 data)
131{ 131{
132 struct av7110 *av7110 = dev->ext_priv;
132 u8 buf[] = { 0x00, reg, data }; 133 u8 buf[] = { 0x00, reg, data };
133 struct i2c_msg msg = { .addr = addr, .flags = 0, .buf = buf, .len = 3 }; 134 struct i2c_msg msg = { .addr = addr, .flags = 0, .buf = buf, .len = 3 };
134 135
135 dprintk(4, "dev: %p\n", dev); 136 dprintk(4, "dev: %p\n", dev);
136 137
137 if (1 != saa7146_i2c_transfer(dev, &msg, 1, 1)) 138 if (1 != i2c_transfer(&av7110->i2c_adap, &msg, 1))
138 return -1; 139 return -1;
139 return 0; 140 return 0;
140} 141}
141 142
142static int tuner_write(struct saa7146_dev *dev, u8 addr, u8 data [4]) 143static int tuner_write(struct saa7146_dev *dev, u8 addr, u8 data [4])
143{ 144{
145 struct av7110 *av7110 = dev->ext_priv;
144 struct i2c_msg msg = { .addr = addr, .flags = 0, .buf = data, .len = 4 }; 146 struct i2c_msg msg = { .addr = addr, .flags = 0, .buf = data, .len = 4 };
145 147
146 dprintk(4, "dev: %p\n", dev); 148 dprintk(4, "dev: %p\n", dev);
147 149
148 if (1 != saa7146_i2c_transfer(dev, &msg, 1, 1)) 150 if (1 != i2c_transfer(&av7110->i2c_adap, &msg, 1))
149 return -1; 151 return -1;
150 return 0; 152 return 0;
151} 153}
diff --git a/include/media/saa7146.h b/include/media/saa7146.h
index 67703249b245..cd3ff2c29d5e 100644
--- a/include/media/saa7146.h
+++ b/include/media/saa7146.h
@@ -146,7 +146,6 @@ struct saa7146_dev
146 146
147/* from saa7146_i2c.c */ 147/* from saa7146_i2c.c */
148int saa7146_i2c_adapter_prepare(struct saa7146_dev *dev, struct i2c_adapter *i2c_adapter, u32 bitrate); 148int saa7146_i2c_adapter_prepare(struct saa7146_dev *dev, struct i2c_adapter *i2c_adapter, u32 bitrate);
149int saa7146_i2c_transfer(struct saa7146_dev *saa, const struct i2c_msg *msgs, int num, int retries);
150 149
151/* from saa7146_core.c */ 150/* from saa7146_core.c */
152extern struct list_head saa7146_devices; 151extern struct list_head saa7146_devices;