[media] cx24120: minor checkpatch fixes
authorPatrick Boettcher <patrick.boettcher@posteo.de>
Fri, 17 Apr 2015 09:04:53 +0000 (06:04 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 18 May 2015 19:32:15 +0000 (16:32 -0300)
This patch fixes printk-related checkpatch warnings. All printks
have been converted to pr_warn or pr_info or pr_err.

Signed-off-by: Patrick.Boettcher <patrick.boettcher@posteo.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-frontends/cx24120.c
drivers/media/dvb-frontends/cx24120.h

index 344d8b8..ff7f214 100644 (file)
@@ -108,11 +108,8 @@ enum command_message_id {
 #define CX24120_STATUS_MASK    (0x0f)
 #define CX24120_SIGNAL_MASK    (0xc0)
 
-#define info(args...) do { printk(KERN_INFO "cx24120: "); \
-                       printk(args); } while (0)
-#define err(args...) do {  printk(KERN_ERR "cx24120: ### ERROR: "); \
-                       printk(args); } while (0)
-
+#define info(args...) pr_info("cx24120: " args)
+#define err(args...)  pr_err("cx24120: ### ERROR: " args)
 
 /* The Demod/Tuner can't easily provide these, we cache them */
 struct cx24120_tuning {
index 9a394d4..076d2dd 100644 (file)
@@ -48,7 +48,7 @@ static inline struct dvb_frontend *cx24120_attach(
        const struct cx24120_config *config,
        struct i2c_adapter *i2c)
 {
-       printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
+       pr_warn("%s: driver disabled by Kconfig\n", __func__);
        return NULL;
 }
 #endif