aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx23885/cx23885-i2c.c
diff options
context:
space:
mode:
authorSteven Toth <stoth@hauppauge.com>2008-01-12 09:36:36 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:04:51 -0500
commit4513fc696e273d64ea32f2366748aed810316ecc (patch)
tree567d831ce0518f44d48cfcadebce86781266563b /drivers/media/video/cx23885/cx23885-i2c.c
parentd685a483b8c92e3d0580b6c28e2ed531391c8c46 (diff)
V4L/DVB (7014): cx23885: dprintk macro cleanup
Added missing do { } while (0) Signed-off-by: Steven Toth <stoth@hauppauge.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/cx23885/cx23885-i2c.c')
-rw-r--r--drivers/media/video/cx23885/cx23885-i2c.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/cx23885/cx23885-i2c.c b/drivers/media/video/cx23885/cx23885-i2c.c
index fbc4a57a236b..92fe0bd37c84 100644
--- a/drivers/media/video/cx23885/cx23885-i2c.c
+++ b/drivers/media/video/cx23885/cx23885-i2c.c
@@ -29,7 +29,7 @@
29 29
30#include <media/v4l2-common.h> 30#include <media/v4l2-common.h>
31 31
32static unsigned int i2c_debug = 0; 32static unsigned int i2c_debug;
33module_param(i2c_debug, int, 0644); 33module_param(i2c_debug, int, 0644);
34MODULE_PARM_DESC(i2c_debug, "enable debug messages [i2c]"); 34MODULE_PARM_DESC(i2c_debug, "enable debug messages [i2c]");
35 35
@@ -37,9 +37,9 @@ static unsigned int i2c_scan = 0;
37module_param(i2c_scan, int, 0444); 37module_param(i2c_scan, int, 0444);
38MODULE_PARM_DESC(i2c_scan, "scan i2c bus at insmod time"); 38MODULE_PARM_DESC(i2c_scan, "scan i2c bus at insmod time");
39 39
40#define dprintk(level, fmt, arg...) do { \ 40#define dprintk(level, fmt, arg...)\
41 if (i2c_debug >= level) \ 41 do { if (i2c_debug >= level)\
42 printk(KERN_DEBUG "%s: " fmt, dev->name , ## arg); \ 42 printk(KERN_DEBUG "%s/0: " fmt, dev->name, ## arg);\
43 } while (0) 43 } while (0)
44 44
45#define I2C_WAIT_DELAY 32 45#define I2C_WAIT_DELAY 32