diff options
author | Joe Perches <joe@perches.com> | 2010-10-25 22:44:25 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-12-29 05:16:29 -0500 |
commit | c429e7b62a54bf34c1995b45faeaeb84104f1705 (patch) | |
tree | 80470e48b437e6c8ea7d92591ea6f88519e37370 /drivers/media/common | |
parent | 1bc25f7d6c0f353d3c73252048fe03a3d8f0e6b8 (diff) |
[media] drivers/media: Removed unnecessary KERN_<level>s from dprintk uses
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>
Diffstat (limited to 'drivers/media/common')
-rw-r--r-- | drivers/media/common/tuners/max2165.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/media/common/tuners/max2165.c b/drivers/media/common/tuners/max2165.c index 937e4b00d7ee..9883617b7862 100644 --- a/drivers/media/common/tuners/max2165.c +++ b/drivers/media/common/tuners/max2165.c | |||
@@ -52,13 +52,12 @@ static int max2165_write_reg(struct max2165_priv *priv, u8 reg, u8 data) | |||
52 | msg.addr = priv->config->i2c_address; | 52 | msg.addr = priv->config->i2c_address; |
53 | 53 | ||
54 | if (debug >= 2) | 54 | if (debug >= 2) |
55 | printk(KERN_DEBUG "%s: reg=0x%02X, data=0x%02X\n", | 55 | dprintk("%s: reg=0x%02X, data=0x%02X\n", __func__, reg, data); |
56 | __func__, reg, data); | ||
57 | 56 | ||
58 | ret = i2c_transfer(priv->i2c, &msg, 1); | 57 | ret = i2c_transfer(priv->i2c, &msg, 1); |
59 | 58 | ||
60 | if (ret != 1) | 59 | if (ret != 1) |
61 | dprintk(KERN_DEBUG "%s: error reg=0x%x, data=0x%x, ret=%i\n", | 60 | dprintk("%s: error reg=0x%x, data=0x%x, ret=%i\n", |
62 | __func__, reg, data, ret); | 61 | __func__, reg, data, ret); |
63 | 62 | ||
64 | return (ret != 1) ? -EIO : 0; | 63 | return (ret != 1) ? -EIO : 0; |
@@ -78,14 +77,13 @@ static int max2165_read_reg(struct max2165_priv *priv, u8 reg, u8 *p_data) | |||
78 | 77 | ||
79 | ret = i2c_transfer(priv->i2c, msg, 2); | 78 | ret = i2c_transfer(priv->i2c, msg, 2); |
80 | if (ret != 2) { | 79 | if (ret != 2) { |
81 | dprintk(KERN_DEBUG "%s: error reg=0x%x, ret=%i\n", | 80 | dprintk("%s: error reg=0x%x, ret=%i\n", __func__, reg, ret); |
82 | __func__, reg, ret); | ||
83 | return -EIO; | 81 | return -EIO; |
84 | } | 82 | } |
85 | 83 | ||
86 | *p_data = b1[0]; | 84 | *p_data = b1[0]; |
87 | if (debug >= 2) | 85 | if (debug >= 2) |
88 | printk(KERN_DEBUG "%s: reg=0x%02X, data=0x%02X\n", | 86 | dprintk("%s: reg=0x%02X, data=0x%02X\n", |
89 | __func__, reg, b1[0]); | 87 | __func__, reg, b1[0]); |
90 | return 0; | 88 | return 0; |
91 | } | 89 | } |