diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-18 21:12:52 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-24 13:09:43 -0400 |
commit | 18d73c58b5ea7425db05b666408f6f682d837b73 (patch) | |
tree | d071b99fdbb10abbed2c9c81ec3ea2a2519c4ffc /drivers/media/video/au0828/au0828-i2c.c | |
parent | bbdf855b0e98ba576b3577522af5e5c7503c4ed0 (diff) |
V4L/DVB (7638): CodingStyle fixes for au8522 and au0828
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/au0828/au0828-i2c.c')
-rw-r--r-- | drivers/media/video/au0828/au0828-i2c.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/media/video/au0828/au0828-i2c.c b/drivers/media/video/au0828/au0828-i2c.c index ae73a6769296..94c8b74a6651 100644 --- a/drivers/media/video/au0828/au0828-i2c.c +++ b/drivers/media/video/au0828/au0828-i2c.c | |||
@@ -23,17 +23,17 @@ | |||
23 | #include <linux/moduleparam.h> | 23 | #include <linux/moduleparam.h> |
24 | #include <linux/init.h> | 24 | #include <linux/init.h> |
25 | #include <linux/delay.h> | 25 | #include <linux/delay.h> |
26 | #include <asm/io.h> | 26 | #include <linux/io.h> |
27 | 27 | ||
28 | #include "au0828.h" | 28 | #include "au0828.h" |
29 | 29 | ||
30 | #include <media/v4l2-common.h> | 30 | #include <media/v4l2-common.h> |
31 | 31 | ||
32 | unsigned int i2c_debug = 0; | 32 | unsigned int i2c_debug; |
33 | module_param(i2c_debug, int, 0444); | 33 | module_param(i2c_debug, int, 0444); |
34 | MODULE_PARM_DESC(i2c_debug, "enable debug messages [i2c]"); | 34 | MODULE_PARM_DESC(i2c_debug, "enable debug messages [i2c]"); |
35 | 35 | ||
36 | unsigned int i2c_scan = 0; | 36 | unsigned int i2c_scan; |
37 | module_param(i2c_scan, int, 0444); | 37 | module_param(i2c_scan, int, 0444); |
38 | MODULE_PARM_DESC(i2c_scan, "scan i2c bus at insmod time"); | 38 | MODULE_PARM_DESC(i2c_scan, "scan i2c bus at insmod time"); |
39 | 39 | ||
@@ -323,9 +323,9 @@ static struct i2c_client au0828_i2c_client_template = { | |||
323 | }; | 323 | }; |
324 | 324 | ||
325 | static char *i2c_devs[128] = { | 325 | static char *i2c_devs[128] = { |
326 | [ 0x8e >> 1 ] = "au8522", | 326 | [0x8e >> 1] = "au8522", |
327 | [ 0xa0 >> 1 ] = "eeprom", | 327 | [0xa0 >> 1] = "eeprom", |
328 | [ 0xc2 >> 1 ] = "tuner/xc5000", | 328 | [0xc2 >> 1] = "tuner/xc5000", |
329 | }; | 329 | }; |
330 | 330 | ||
331 | static void do_i2c_scan(char *name, struct i2c_client *c) | 331 | static void do_i2c_scan(char *name, struct i2c_client *c) |
@@ -338,7 +338,7 @@ static void do_i2c_scan(char *name, struct i2c_client *c) | |||
338 | rc = i2c_master_recv(c, &buf, 0); | 338 | rc = i2c_master_recv(c, &buf, 0); |
339 | if (rc < 0) | 339 | if (rc < 0) |
340 | continue; | 340 | continue; |
341 | printk("%s: i2c scan: found device @ 0x%x [%s]\n", | 341 | printk(KERN_INFO "%s: i2c scan: found device @ 0x%x [%s]\n", |
342 | name, i << 1, i2c_devs[i] ? i2c_devs[i] : "???"); | 342 | name, i << 1, i2c_devs[i] ? i2c_devs[i] : "???"); |
343 | } | 343 | } |
344 | } | 344 | } |
@@ -368,11 +368,11 @@ int au0828_i2c_register(struct au0828_dev *dev) | |||
368 | dev->i2c_client.adapter = &dev->i2c_adap; | 368 | dev->i2c_client.adapter = &dev->i2c_adap; |
369 | 369 | ||
370 | if (0 == dev->i2c_rc) { | 370 | if (0 == dev->i2c_rc) { |
371 | printk("%s: i2c bus registered\n", DRIVER_NAME); | 371 | printk(KERN_INFO "%s: i2c bus registered\n", DRIVER_NAME); |
372 | if (i2c_scan) | 372 | if (i2c_scan) |
373 | do_i2c_scan(DRIVER_NAME, &dev->i2c_client); | 373 | do_i2c_scan(DRIVER_NAME, &dev->i2c_client); |
374 | } else | 374 | } else |
375 | printk("%s: i2c bus register FAILED\n", DRIVER_NAME); | 375 | printk(KERN_INFO "%s: i2c bus register FAILED\n", DRIVER_NAME); |
376 | 376 | ||
377 | return dev->i2c_rc; | 377 | return dev->i2c_rc; |
378 | } | 378 | } |