aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tuner-i2c.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/tuner-i2c.h')
-rw-r--r--drivers/media/video/tuner-i2c.h42
1 files changed, 24 insertions, 18 deletions
diff --git a/drivers/media/video/tuner-i2c.h b/drivers/media/video/tuner-i2c.h
index cfba3d10906c..b5ac189ba40f 100644
--- a/drivers/media/video/tuner-i2c.h
+++ b/drivers/media/video/tuner-i2c.h
@@ -47,24 +47,30 @@ static inline int tuner_i2c_xfer_recv(struct tuner_i2c_props *props, char *buf,
47} 47}
48 48
49#ifndef __TUNER_DRIVER_H__ 49#ifndef __TUNER_DRIVER_H__
50#define tuner_warn(fmt, arg...) do {\ 50#define tuner_warn(fmt, arg...) do { \
51 printk(KERN_WARNING "%s %d-%04x: " fmt, PREFIX, \ 51 printk(KERN_WARNING "%s %d-%04x: " fmt, PREFIX, \
52 i2c_adapter_id(priv->i2c_props.adap), priv->i2c_props.addr , ##arg); } while (0) 52 i2c_adapter_id(priv->i2c_props.adap), \
53#define tuner_info(fmt, arg...) do {\ 53 priv->i2c_props.addr, ##arg); \
54 printk(KERN_INFO "%s %d-%04x: " fmt, PREFIX, \ 54 } while (0)
55 i2c_adapter_id(priv->i2c_props.adap), priv->i2c_props.addr , ##arg); } while (0) 55
56#define tuner_dbg(fmt, arg...) do {\ 56#define tuner_info(fmt, arg...) do { \
57 if ((debug)) \ 57 printk(KERN_INFO "%s %d-%04x: " fmt, PREFIX, \
58 printk(KERN_DEBUG "%s %d-%04x: " fmt, PREFIX, \ 58 i2c_adapter_id(priv->i2c_props.adap), \
59 i2c_adapter_id(priv->i2c_props.adap), priv->i2c_props.addr , ##arg); } while (0) 59 priv->i2c_props.addr , ##arg); \
60 } while (0)
61
62#define tuner_err(fmt, arg...) do { \
63 printk(KERN_ERR "%s %d-%04x: " fmt, PREFIX, \
64 i2c_adapter_id(priv->i2c_props.adap), \
65 priv->i2c_props.addr , ##arg); \
66 } while (0)
67
68#define tuner_dbg(fmt, arg...) do { \
69 if ((debug)) \
70 printk(KERN_DEBUG "%s %d-%04x: " fmt, PREFIX, \
71 i2c_adapter_id(priv->i2c_props.adap), \
72 priv->i2c_props.addr , ##arg); \
73 } while (0)
60#endif /* __TUNER_DRIVER_H__ */ 74#endif /* __TUNER_DRIVER_H__ */
61 75
62#endif /* __TUNER_I2C_H__ */ 76#endif /* __TUNER_I2C_H__ */
63
64/*
65 * Overrides for Emacs so that we follow Linus's tabbing style.
66 * ---------------------------------------------------------------------------
67 * Local variables:
68 * c-basic-offset: 8
69 * End:
70 */