diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2008-04-22 13:41:53 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-24 12:42:26 -0400 |
commit | 2756665c28a7d2e25d92745195b5171866e12da9 (patch) | |
tree | 3624ed3ae3c118747684f86786fd138318fe903c /drivers/media/video/tea5767.c | |
parent | 3c2a0865d06df23f755a7d36a1076965500e1228 (diff) |
V4L/DVB (7135): remove PREFIX from users of tuner_foo printk macros
Store a pointer to the device name in the name field of
struct tuner_i2c_props, so that we can remove the
printk macros defined in tuner-i2c.h
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/tea5767.c')
-rw-r--r-- | drivers/media/video/tea5767.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/drivers/media/video/tea5767.c b/drivers/media/video/tea5767.c index ba66c6d3e2b9..833f2768958d 100644 --- a/drivers/media/video/tea5767.c +++ b/drivers/media/video/tea5767.c | |||
@@ -20,8 +20,6 @@ static int debug; | |||
20 | module_param(debug, int, 0644); | 20 | module_param(debug, int, 0644); |
21 | MODULE_PARM_DESC(debug, "enable verbose debug messages"); | 21 | MODULE_PARM_DESC(debug, "enable verbose debug messages"); |
22 | 22 | ||
23 | #define PREFIX "tea5767" | ||
24 | |||
25 | /*****************************************************************************/ | 23 | /*****************************************************************************/ |
26 | 24 | ||
27 | struct tea5767_priv { | 25 | struct tea5767_priv { |
@@ -137,14 +135,14 @@ static void tea5767_status_dump(struct tea5767_priv *priv, | |||
137 | unsigned int div, frq; | 135 | unsigned int div, frq; |
138 | 136 | ||
139 | if (TEA5767_READY_FLAG_MASK & buffer[0]) | 137 | if (TEA5767_READY_FLAG_MASK & buffer[0]) |
140 | printk(PREFIX "Ready Flag ON\n"); | 138 | tuner_info("Ready Flag ON\n"); |
141 | else | 139 | else |
142 | printk(PREFIX "Ready Flag OFF\n"); | 140 | tuner_info("Ready Flag OFF\n"); |
143 | 141 | ||
144 | if (TEA5767_BAND_LIMIT_MASK & buffer[0]) | 142 | if (TEA5767_BAND_LIMIT_MASK & buffer[0]) |
145 | printk(PREFIX "Tuner at band limit\n"); | 143 | tuner_info("Tuner at band limit\n"); |
146 | else | 144 | else |
147 | printk(PREFIX "Tuner not at band limit\n"); | 145 | tuner_info("Tuner not at band limit\n"); |
148 | 146 | ||
149 | div = ((buffer[0] & 0x3f) << 8) | buffer[1]; | 147 | div = ((buffer[0] & 0x3f) << 8) | buffer[1]; |
150 | 148 | ||
@@ -166,23 +164,23 @@ static void tea5767_status_dump(struct tea5767_priv *priv, | |||
166 | buffer[0] = (div >> 8) & 0x3f; | 164 | buffer[0] = (div >> 8) & 0x3f; |
167 | buffer[1] = div & 0xff; | 165 | buffer[1] = div & 0xff; |
168 | 166 | ||
169 | printk(PREFIX "Frequency %d.%03d KHz (divider = 0x%04x)\n", | 167 | tuner_info("Frequency %d.%03d KHz (divider = 0x%04x)\n", |
170 | frq / 1000, frq % 1000, div); | 168 | frq / 1000, frq % 1000, div); |
171 | 169 | ||
172 | if (TEA5767_STEREO_MASK & buffer[2]) | 170 | if (TEA5767_STEREO_MASK & buffer[2]) |
173 | printk(PREFIX "Stereo\n"); | 171 | tuner_info("Stereo\n"); |
174 | else | 172 | else |
175 | printk(PREFIX "Mono\n"); | 173 | tuner_info("Mono\n"); |
176 | 174 | ||
177 | printk(PREFIX "IF Counter = %d\n", buffer[2] & TEA5767_IF_CNTR_MASK); | 175 | tuner_info("IF Counter = %d\n", buffer[2] & TEA5767_IF_CNTR_MASK); |
178 | 176 | ||
179 | printk(PREFIX "ADC Level = %d\n", | 177 | tuner_info("ADC Level = %d\n", |
180 | (buffer[3] & TEA5767_ADC_LEVEL_MASK) >> 4); | 178 | (buffer[3] & TEA5767_ADC_LEVEL_MASK) >> 4); |
181 | 179 | ||
182 | printk(PREFIX "Chip ID = %d\n", (buffer[3] & TEA5767_CHIP_ID_MASK)); | 180 | tuner_info("Chip ID = %d\n", (buffer[3] & TEA5767_CHIP_ID_MASK)); |
183 | 181 | ||
184 | printk(PREFIX "Reserved = 0x%02x\n", | 182 | tuner_info("Reserved = 0x%02x\n", |
185 | (buffer[4] & TEA5767_RESERVED_MASK)); | 183 | (buffer[4] & TEA5767_RESERVED_MASK)); |
186 | } | 184 | } |
187 | 185 | ||
188 | /* Freq should be specifyed at 62.5 Hz */ | 186 | /* Freq should be specifyed at 62.5 Hz */ |
@@ -456,6 +454,8 @@ struct dvb_frontend *tea5767_attach(struct dvb_frontend *fe, | |||
456 | 454 | ||
457 | priv->i2c_props.addr = i2c_addr; | 455 | priv->i2c_props.addr = i2c_addr; |
458 | priv->i2c_props.adap = i2c_adap; | 456 | priv->i2c_props.adap = i2c_adap; |
457 | priv->i2c_props.name = "tea5767"; | ||
458 | |||
459 | priv->ctrl.xtal_freq = TEA5767_HIGH_LO_32768; | 459 | priv->ctrl.xtal_freq = TEA5767_HIGH_LO_32768; |
460 | priv->ctrl.port1 = 1; | 460 | priv->ctrl.port1 = 1; |
461 | priv->ctrl.port2 = 1; | 461 | priv->ctrl.port2 = 1; |