aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tvp5150.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@brturbo.com.br>2006-01-09 12:53:26 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-01-09 12:53:26 -0500
commitcab462f716cdd522edc71436482d8734e8258489 (patch)
treec3ec0ceaee9b5d61148afea728cc6c05e682856f /drivers/media/video/tvp5150.c
parent0680481c8e6260e1780a0900990531f0193b0dd4 (diff)
V4L/DVB (3307): Some cleanups at I2C modules
- i2c names shorten - removed obsoleted flags on newer modules - small cleanups Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'drivers/media/video/tvp5150.c')
-rw-r--r--drivers/media/video/tvp5150.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/media/video/tvp5150.c b/drivers/media/video/tvp5150.c
index 07ad675cd58e..c35b8042eee5 100644
--- a/drivers/media/video/tvp5150.c
+++ b/drivers/media/video/tvp5150.c
@@ -30,14 +30,15 @@ module_param(debug, int, 0);
30MODULE_PARM_DESC(debug, "Debug level (0-1)"); 30MODULE_PARM_DESC(debug, "Debug level (0-1)");
31 31
32#define tvp5150_info(fmt, arg...) do { \ 32#define tvp5150_info(fmt, arg...) do { \
33 printk(KERN_INFO "%s %d-%04x: " fmt, c->driver->name, \ 33 printk(KERN_INFO "%s %d-%04x: " fmt, c->driver->driver.name, \
34 i2c_adapter_id(c->adapter), c->addr , ## arg); } while (0) 34 i2c_adapter_id(c->adapter), c->addr , ## arg); } while (0)
35#define tvp5150_dbg(num, fmt, arg...) \ 35#define tvp5150_dbg(num, fmt, arg...) \
36 do { \ 36 do { \
37 if (debug >= num) \ 37 if (debug >= num) \
38 printk(KERN_DEBUG "%s debug %d-%04x: " fmt, c->driver->name, \ 38 printk(KERN_DEBUG "%s debug %d-%04x: " fmt,\
39 i2c_adapter_id(c->adapter), c->addr , ## arg); \ 39 c->driver->driver.name, \
40 } while (0) 40 i2c_adapter_id(c->adapter), \
41 c->addr , ## arg); } while (0)
41 42
42/* supported controls */ 43/* supported controls */
43static struct v4l2_queryctrl tvp5150_qctrl[] = { 44static struct v4l2_queryctrl tvp5150_qctrl[] = {
@@ -1137,9 +1138,7 @@ static struct i2c_driver driver = {
1137 .driver = { 1138 .driver = {
1138 .name = "tvp5150", 1139 .name = "tvp5150",
1139 }, 1140 },
1140 1141 .id = I2C_DRIVERID_TVP5150,
1141 /* FIXME */
1142 .id = I2C_DRIVERID_SAA7110,
1143 1142
1144 .attach_adapter = tvp5150_attach_adapter, 1143 .attach_adapter = tvp5150_attach_adapter,
1145 .detach_client = tvp5150_detach_client, 1144 .detach_client = tvp5150_detach_client,