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 | |
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')
-rw-r--r-- | drivers/media/video/mt20xx.c | 3 | ||||
-rw-r--r-- | drivers/media/video/tda8290.c | 3 | ||||
-rw-r--r-- | drivers/media/video/tda9887.c | 3 | ||||
-rw-r--r-- | drivers/media/video/tea5761.c | 5 | ||||
-rw-r--r-- | drivers/media/video/tea5767.c | 32 | ||||
-rw-r--r-- | drivers/media/video/tuner-simple.c | 4 | ||||
-rw-r--r-- | drivers/media/video/tuner-xc2028.c | 8 |
7 files changed, 27 insertions, 31 deletions
diff --git a/drivers/media/video/mt20xx.c b/drivers/media/video/mt20xx.c index 1fa89dbdff24..fbcb28233737 100644 --- a/drivers/media/video/mt20xx.c +++ b/drivers/media/video/mt20xx.c | |||
@@ -14,8 +14,6 @@ static int debug; | |||
14 | module_param(debug, int, 0644); | 14 | module_param(debug, int, 0644); |
15 | MODULE_PARM_DESC(debug, "enable verbose debug messages"); | 15 | MODULE_PARM_DESC(debug, "enable verbose debug messages"); |
16 | 16 | ||
17 | #define PREFIX "mt20xx" | ||
18 | |||
19 | /* ---------------------------------------------------------------------- */ | 17 | /* ---------------------------------------------------------------------- */ |
20 | 18 | ||
21 | static unsigned int optimize_vco = 1; | 19 | static unsigned int optimize_vco = 1; |
@@ -611,6 +609,7 @@ struct dvb_frontend *microtune_attach(struct dvb_frontend *fe, | |||
611 | 609 | ||
612 | priv->i2c_props.addr = i2c_addr; | 610 | priv->i2c_props.addr = i2c_addr; |
613 | priv->i2c_props.adap = i2c_adap; | 611 | priv->i2c_props.adap = i2c_adap; |
612 | priv->i2c_props.name = "mt20xx"; | ||
614 | 613 | ||
615 | //priv->radio_if2 = 10700 * 1000; /* 10.7MHz - FM radio */ | 614 | //priv->radio_if2 = 10700 * 1000; /* 10.7MHz - FM radio */ |
616 | 615 | ||
diff --git a/drivers/media/video/tda8290.c b/drivers/media/video/tda8290.c index 55bc89a6f069..6f2449ab46a0 100644 --- a/drivers/media/video/tda8290.c +++ b/drivers/media/video/tda8290.c | |||
@@ -32,8 +32,6 @@ static int debug; | |||
32 | module_param(debug, int, 0644); | 32 | module_param(debug, int, 0644); |
33 | MODULE_PARM_DESC(debug, "enable verbose debug messages"); | 33 | MODULE_PARM_DESC(debug, "enable verbose debug messages"); |
34 | 34 | ||
35 | #define PREFIX "tda8290" | ||
36 | |||
37 | /* ---------------------------------------------------------------------- */ | 35 | /* ---------------------------------------------------------------------- */ |
38 | 36 | ||
39 | struct tda8290_priv { | 37 | struct tda8290_priv { |
@@ -674,6 +672,7 @@ struct dvb_frontend *tda829x_attach(struct dvb_frontend *fe, | |||
674 | 672 | ||
675 | priv->i2c_props.addr = i2c_addr; | 673 | priv->i2c_props.addr = i2c_addr; |
676 | priv->i2c_props.adap = i2c_adap; | 674 | priv->i2c_props.adap = i2c_adap; |
675 | priv->i2c_props.name = "tda829x"; | ||
677 | if (cfg) { | 676 | if (cfg) { |
678 | priv->cfg.config = cfg->lna_cfg; | 677 | priv->cfg.config = cfg->lna_cfg; |
679 | priv->cfg.tuner_callback = cfg->tuner_callback; | 678 | priv->cfg.tuner_callback = cfg->tuner_callback; |
diff --git a/drivers/media/video/tda9887.c b/drivers/media/video/tda9887.c index 106c93b8203f..75d08404d238 100644 --- a/drivers/media/video/tda9887.c +++ b/drivers/media/video/tda9887.c | |||
@@ -25,8 +25,6 @@ static int debug; | |||
25 | module_param(debug, int, 0644); | 25 | module_param(debug, int, 0644); |
26 | MODULE_PARM_DESC(debug, "enable verbose debug messages"); | 26 | MODULE_PARM_DESC(debug, "enable verbose debug messages"); |
27 | 27 | ||
28 | #define PREFIX "tda9887" | ||
29 | |||
30 | struct tda9887_priv { | 28 | struct tda9887_priv { |
31 | struct tuner_i2c_props i2c_props; | 29 | struct tuner_i2c_props i2c_props; |
32 | 30 | ||
@@ -673,6 +671,7 @@ struct dvb_frontend *tda9887_attach(struct dvb_frontend *fe, | |||
673 | 671 | ||
674 | priv->i2c_props.addr = i2c_addr; | 672 | priv->i2c_props.addr = i2c_addr; |
675 | priv->i2c_props.adap = i2c_adap; | 673 | priv->i2c_props.adap = i2c_adap; |
674 | priv->i2c_props.name = "tda9887"; | ||
676 | priv->mode = T_STANDBY; | 675 | priv->mode = T_STANDBY; |
677 | 676 | ||
678 | tuner_info("tda988[5/6/7] found\n"); | 677 | tuner_info("tda988[5/6/7] found\n"); |
diff --git a/drivers/media/video/tea5761.c b/drivers/media/video/tea5761.c index 35612665d933..bd5ad549c1df 100644 --- a/drivers/media/video/tea5761.c +++ b/drivers/media/video/tea5761.c | |||
@@ -18,8 +18,6 @@ static int debug; | |||
18 | module_param(debug, int, 0644); | 18 | module_param(debug, int, 0644); |
19 | MODULE_PARM_DESC(debug, "enable verbose debug messages"); | 19 | MODULE_PARM_DESC(debug, "enable verbose debug messages"); |
20 | 20 | ||
21 | #define PREFIX "tea5761" | ||
22 | |||
23 | struct tea5761_priv { | 21 | struct tea5761_priv { |
24 | struct tuner_i2c_props i2c_props; | 22 | struct tuner_i2c_props i2c_props; |
25 | 23 | ||
@@ -131,7 +129,7 @@ static void tea5761_status_dump(unsigned char *buffer) | |||
131 | 129 | ||
132 | frq = 1000 * (div * 32768 / 1000 + FREQ_OFFSET + 225) / 4; /* Freq in KHz */ | 130 | frq = 1000 * (div * 32768 / 1000 + FREQ_OFFSET + 225) / 4; /* Freq in KHz */ |
133 | 131 | ||
134 | printk(PREFIX "Frequency %d.%03d KHz (divider = 0x%04x)\n", | 132 | printk(KERN_INFO "tea5761: Frequency %d.%03d KHz (divider = 0x%04x)\n", |
135 | frq / 1000, frq % 1000, div); | 133 | frq / 1000, frq % 1000, div); |
136 | } | 134 | } |
137 | 135 | ||
@@ -302,6 +300,7 @@ struct dvb_frontend *tea5761_attach(struct dvb_frontend *fe, | |||
302 | 300 | ||
303 | priv->i2c_props.addr = i2c_addr; | 301 | priv->i2c_props.addr = i2c_addr; |
304 | priv->i2c_props.adap = i2c_adap; | 302 | priv->i2c_props.adap = i2c_adap; |
303 | priv->i2c_props.name = "tea5761"; | ||
305 | 304 | ||
306 | memcpy(&fe->ops.tuner_ops, &tea5761_tuner_ops, | 305 | memcpy(&fe->ops.tuner_ops, &tea5761_tuner_ops, |
307 | sizeof(struct dvb_tuner_ops)); | 306 | sizeof(struct dvb_tuner_ops)); |
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; |
diff --git a/drivers/media/video/tuner-simple.c b/drivers/media/video/tuner-simple.c index 10addf2ba5ce..dc2467159ece 100644 --- a/drivers/media/video/tuner-simple.c +++ b/drivers/media/video/tuner-simple.c | |||
@@ -17,8 +17,6 @@ static int debug; | |||
17 | module_param(debug, int, 0644); | 17 | module_param(debug, int, 0644); |
18 | MODULE_PARM_DESC(debug, "enable verbose debug messages"); | 18 | MODULE_PARM_DESC(debug, "enable verbose debug messages"); |
19 | 19 | ||
20 | #define PREFIX "tuner-simple" | ||
21 | |||
22 | static int offset; | 20 | static int offset; |
23 | module_param(offset, int, 0664); | 21 | module_param(offset, int, 0664); |
24 | MODULE_PARM_DESC(offset, "Allows to specify an offset for tuner"); | 22 | MODULE_PARM_DESC(offset, "Allows to specify an offset for tuner"); |
@@ -738,6 +736,8 @@ struct dvb_frontend *simple_tuner_attach(struct dvb_frontend *fe, | |||
738 | 736 | ||
739 | priv->i2c_props.addr = i2c_addr; | 737 | priv->i2c_props.addr = i2c_addr; |
740 | priv->i2c_props.adap = i2c_adap; | 738 | priv->i2c_props.adap = i2c_adap; |
739 | priv->i2c_props.name = "tuner-simple"; | ||
740 | |||
741 | priv->type = type; | 741 | priv->type = type; |
742 | priv->tun = &tuners[type]; | 742 | priv->tun = &tuners[type]; |
743 | 743 | ||
diff --git a/drivers/media/video/tuner-xc2028.c b/drivers/media/video/tuner-xc2028.c index 8f4fdf70f7eb..42dc2c6ccbbf 100644 --- a/drivers/media/video/tuner-xc2028.c +++ b/drivers/media/video/tuner-xc2028.c | |||
@@ -23,8 +23,6 @@ | |||
23 | #include "dvb_frontend.h" | 23 | #include "dvb_frontend.h" |
24 | 24 | ||
25 | 25 | ||
26 | #define PREFIX "xc2028" | ||
27 | |||
28 | static int debug; | 26 | static int debug; |
29 | module_param(debug, int, 0644); | 27 | module_param(debug, int, 0644); |
30 | MODULE_PARM_DESC(debug, "enable verbose debug messages"); | 28 | MODULE_PARM_DESC(debug, "enable verbose debug messages"); |
@@ -1153,13 +1151,13 @@ struct dvb_frontend *xc2028_attach(struct dvb_frontend *fe, | |||
1153 | void *video_dev; | 1151 | void *video_dev; |
1154 | 1152 | ||
1155 | if (debug) | 1153 | if (debug) |
1156 | printk(KERN_DEBUG PREFIX ": Xcv2028/3028 init called!\n"); | 1154 | printk(KERN_DEBUG "xc2028: Xcv2028/3028 init called!\n"); |
1157 | 1155 | ||
1158 | if (NULL == cfg || NULL == cfg->video_dev) | 1156 | if (NULL == cfg || NULL == cfg->video_dev) |
1159 | return NULL; | 1157 | return NULL; |
1160 | 1158 | ||
1161 | if (!fe) { | 1159 | if (!fe) { |
1162 | printk(KERN_ERR PREFIX ": No frontend!\n"); | 1160 | printk(KERN_ERR "xc2028: No frontend!\n"); |
1163 | return NULL; | 1161 | return NULL; |
1164 | } | 1162 | } |
1165 | 1163 | ||
@@ -1183,6 +1181,8 @@ struct dvb_frontend *xc2028_attach(struct dvb_frontend *fe, | |||
1183 | 1181 | ||
1184 | priv->i2c_props.addr = cfg->i2c_addr; | 1182 | priv->i2c_props.addr = cfg->i2c_addr; |
1185 | priv->i2c_props.adap = cfg->i2c_adap; | 1183 | priv->i2c_props.adap = cfg->i2c_adap; |
1184 | priv->i2c_props.name = "xc2028"; | ||
1185 | |||
1186 | priv->video_dev = video_dev; | 1186 | priv->video_dev = video_dev; |
1187 | priv->tuner_callback = cfg->callback; | 1187 | priv->tuner_callback = cfg->callback; |
1188 | priv->ctrl.max_len = 13; | 1188 | priv->ctrl.max_len = 13; |