aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tuner-driver.h
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2007-09-14 04:13:54 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:01:32 -0500
commit1cba97d71dca1a3c22b4d7f97893249817036215 (patch)
tree0673ba7cce40953ee97eabb822899f2a5cf0b3d4 /drivers/media/video/tuner-driver.h
parent1a156045ab06b2cce8cf46e7bf53da26ab33b084 (diff)
V4L/DVB (6471): tuner: i2c_client cannot be part of the tuner struct
The bus-based I2C subsystem allocates the i2c_client struct. So if in order to be able to convert the tuner to the bus-based I2C API the embedded i2c_client struct must be removed from the tuner struct and replaced with a pointer. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/tuner-driver.h')
-rw-r--r--drivers/media/video/tuner-driver.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/media/video/tuner-driver.h b/drivers/media/video/tuner-driver.h
index 728cacd21682..0df136e58eb3 100644
--- a/drivers/media/video/tuner-driver.h
+++ b/drivers/media/video/tuner-driver.h
@@ -45,7 +45,7 @@ struct analog_tuner_ops {
45 45
46struct tuner { 46struct tuner {
47 /* device */ 47 /* device */
48 struct i2c_client i2c; 48 struct i2c_client *i2c;
49 49
50 unsigned int type; /* chip type */ 50 unsigned int type; /* chip type */
51 51
@@ -71,16 +71,16 @@ struct tuner {
71/* ------------------------------------------------------------------------ */ 71/* ------------------------------------------------------------------------ */
72 72
73#define tuner_warn(fmt, arg...) do {\ 73#define tuner_warn(fmt, arg...) do {\
74 printk(KERN_WARNING "%s %d-%04x: " fmt, t->i2c.driver->driver.name, \ 74 printk(KERN_WARNING "%s %d-%04x: " fmt, t->i2c->driver->driver.name, \
75 i2c_adapter_id(t->i2c.adapter), t->i2c.addr , ##arg); } while (0) 75 i2c_adapter_id(t->i2c->adapter), t->i2c->addr , ##arg); } while (0)
76#define tuner_info(fmt, arg...) do {\ 76#define tuner_info(fmt, arg...) do {\
77 printk(KERN_INFO "%s %d-%04x: " fmt, t->i2c.driver->driver.name, \ 77 printk(KERN_INFO "%s %d-%04x: " fmt, t->i2c->driver->driver.name, \
78 i2c_adapter_id(t->i2c.adapter), t->i2c.addr , ##arg); } while (0) 78 i2c_adapter_id(t->i2c->adapter), t->i2c->addr , ##arg); } while (0)
79#define tuner_dbg(fmt, arg...) do {\ 79#define tuner_dbg(fmt, arg...) do {\
80 extern int tuner_debug; \ 80 extern int tuner_debug; \
81 if (tuner_debug) \ 81 if (tuner_debug) \
82 printk(KERN_DEBUG "%s %d-%04x: " fmt, t->i2c.driver->driver.name, \ 82 printk(KERN_DEBUG "%s %d-%04x: " fmt, t->i2c->driver->driver.name, \
83 i2c_adapter_id(t->i2c.adapter), t->i2c.addr , ##arg); } while (0) 83 i2c_adapter_id(t->i2c->adapter), t->i2c->addr , ##arg); } while (0)
84 84
85#endif /* __TUNER_DRIVER_H__ */ 85#endif /* __TUNER_DRIVER_H__ */
86 86