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/tuner-xc2028.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/tuner-xc2028.c')
-rw-r--r-- | drivers/media/video/tuner-xc2028.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |