[media] drivers/media: Removed unnecessary KERN_<level>s from dprintk uses
authorJoe Perches <joe@perches.com>
Tue, 26 Oct 2010 02:44:25 +0000 (23:44 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 29 Dec 2010 10:16:29 +0000 (08:16 -0200)
Converted if (debug >= 2) printk(KERN_DEBUG... to if debug >= 2) dprintk(...)

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/max2165.c
drivers/media/dvb/frontends/atbm8830.c
drivers/media/dvb/frontends/lgs8gxx.c
drivers/media/video/saa7134/saa7134-input.c
drivers/media/video/saa7134/saa7134-tvaudio.c

index 937e4b00d7eea162e9a966f01d8456f41db14587..9883617b78620a4e813bcfe3b7451a5430b60e44 100644 (file)
@@ -52,13 +52,12 @@ static int max2165_write_reg(struct max2165_priv *priv, u8 reg, u8 data)
        msg.addr = priv->config->i2c_address;
 
        if (debug >= 2)
-               printk(KERN_DEBUG "%s: reg=0x%02X, data=0x%02X\n",
-                       __func__, reg, data);
+               dprintk("%s: reg=0x%02X, data=0x%02X\n", __func__, reg, data);
 
        ret = i2c_transfer(priv->i2c, &msg, 1);
 
        if (ret != 1)
-               dprintk(KERN_DEBUG "%s: error reg=0x%x, data=0x%x, ret=%i\n",
+               dprintk("%s: error reg=0x%x, data=0x%x, ret=%i\n",
                        __func__, reg, data, ret);
 
        return (ret != 1) ? -EIO : 0;
@@ -78,14 +77,13 @@ static int max2165_read_reg(struct max2165_priv *priv, u8 reg, u8 *p_data)
 
        ret = i2c_transfer(priv->i2c, msg, 2);
        if (ret != 2) {
-               dprintk(KERN_DEBUG "%s: error reg=0x%x, ret=%i\n",
-                       __func__, reg, ret);
+               dprintk("%s: error reg=0x%x, ret=%i\n", __func__, reg, ret);
                return -EIO;
        }
 
        *p_data = b1[0];
        if (debug >= 2)
-               printk(KERN_DEBUG "%s: reg=0x%02X, data=0x%02X\n",
+               dprintk("%s: reg=0x%02X, data=0x%02X\n",
                        __func__, reg, b1[0]);
        return 0;
 }
index 43aac2f85c2e5ccd895288d20bbdcfb7c668930a..1539ea1f81acc9abee58b96bc04c182866febb91 100644 (file)
@@ -50,8 +50,7 @@ static int atbm8830_write_reg(struct atbm_state *priv, u16 reg, u8 data)
        msg2.addr = dev_addr;
 
        if (debug >= 2)
-               printk(KERN_DEBUG "%s: reg=0x%04X, data=0x%02X\n",
-                       __func__, reg, data);
+               dprintk("%s: reg=0x%04X, data=0x%02X\n", __func__, reg, data);
 
        ret = i2c_transfer(priv->i2c, &msg1, 1);
        if (ret != 1)
@@ -77,8 +76,7 @@ static int atbm8830_read_reg(struct atbm_state *priv, u16 reg, u8 *p_data)
 
        ret = i2c_transfer(priv->i2c, &msg1, 1);
        if (ret != 1) {
-               dprintk(KERN_DEBUG "%s: error reg=0x%04x, ret=%i\n",
-                       __func__, reg, ret);
+               dprintk("%s: error reg=0x%04x, ret=%i\n", __func__, reg, ret);
                return -EIO;
        }
 
@@ -88,7 +86,7 @@ static int atbm8830_read_reg(struct atbm_state *priv, u16 reg, u8 *p_data)
 
        *p_data = buf2[0];
        if (debug >= 2)
-               printk(KERN_DEBUG "%s: reg=0x%04X, data=0x%02X\n",
+               dprintk("%s: reg=0x%04X, data=0x%02X\n",
                        __func__, reg, buf2[0]);
 
        return 0;
index 0fcddc4569d2bc80252f02172b12cec2402a6e2a..1172b54689f81df3e7888e320f11c82f96c069d5 100644 (file)
@@ -60,13 +60,12 @@ static int lgs8gxx_write_reg(struct lgs8gxx_state *priv, u8 reg, u8 data)
                msg.addr += 0x02;
 
        if (debug >= 2)
-               printk(KERN_DEBUG "%s: reg=0x%02X, data=0x%02X\n",
-                       __func__, reg, data);
+               dprintk("%s: reg=0x%02X, data=0x%02X\n", __func__, reg, data);
 
        ret = i2c_transfer(priv->i2c, &msg, 1);
 
        if (ret != 1)
-               dprintk(KERN_DEBUG "%s: error reg=0x%x, data=0x%x, ret=%i\n",
+               dprintk("%s: error reg=0x%x, data=0x%x, ret=%i\n",
                        __func__, reg, data, ret);
 
        return (ret != 1) ? -1 : 0;
@@ -91,15 +90,13 @@ static int lgs8gxx_read_reg(struct lgs8gxx_state *priv, u8 reg, u8 *p_data)
 
        ret = i2c_transfer(priv->i2c, msg, 2);
        if (ret != 2) {
-               dprintk(KERN_DEBUG "%s: error reg=0x%x, ret=%i\n",
-                       __func__, reg, ret);
+               dprintk("%s: error reg=0x%x, ret=%i\n", __func__, reg, ret);
                return -1;
        }
 
        *p_data = b1[0];
        if (debug >= 2)
-               printk(KERN_DEBUG "%s: reg=0x%02X, data=0x%02X\n",
-                       __func__, reg, b1[0]);
+               dprintk("%s: reg=0x%02X, data=0x%02X\n", __func__, reg, b1[0]);
        return 0;
 }
 
index 46d31dfca7a398b36a4c0f7e89b7f81901017532..b6c682f0acecb02da5db12b25cbaddeef96d295c 100644 (file)
@@ -972,7 +972,7 @@ void saa7134_probe_i2c_ir(struct saa7134_dev *dev)
                   an existing device. Weird...
                   REVISIT: might no longer be needed */
                rc = i2c_transfer(&dev->i2c_adap, &msg_msi, 1);
-               dprintk(KERN_DEBUG "probe 0x%02x @ %s: %s\n",
+               dprintk("probe 0x%02x @ %s: %s\n",
                        msg_msi.addr, dev->i2c_adap.name,
                        (1 == rc) ? "yes" : "no");
                break;
index 3e7d2fd1688f3b27b669e7e603bd76c04f6958c6..57e646bb48b394008e42b686922dc3233554fb9f 100644 (file)
@@ -550,16 +550,16 @@ static int tvaudio_thread(void *data)
                } else if (0 != dev->last_carrier) {
                        /* no carrier -- try last detected one as fallback */
                        carrier = dev->last_carrier;
-                       dprintk(KERN_WARNING "%s/audio: audio carrier scan failed, "
-                              "using %d.%03d MHz [last detected]\n",
-                              dev->name, carrier/1000, carrier%1000);
+                       dprintk("audio carrier scan failed, "
+                               "using %d.%03d MHz [last detected]\n",
+                               carrier/1000, carrier%1000);
 
                } else {
                        /* no carrier + no fallback -- use default */
                        carrier = default_carrier;
-                       dprintk(KERN_WARNING "%s/audio: audio carrier scan failed, "
-                              "using %d.%03d MHz [default]\n",
-                              dev->name, carrier/1000, carrier%1000);
+                       dprintk("audio carrier scan failed, "
+                               "using %d.%03d MHz [default]\n",
+                               carrier/1000, carrier%1000);
                }
                tvaudio_setcarrier(dev,carrier,carrier);
                dev->automute = 0;