aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tea5761.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2008-04-22 13:41:53 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 12:42:26 -0400
commit2756665c28a7d2e25d92745195b5171866e12da9 (patch)
tree3624ed3ae3c118747684f86786fd138318fe903c /drivers/media/video/tea5761.c
parent3c2a0865d06df23f755a7d36a1076965500e1228 (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/tea5761.c')
-rw-r--r--drivers/media/video/tea5761.c5
1 files changed, 2 insertions, 3 deletions
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;
18module_param(debug, int, 0644); 18module_param(debug, int, 0644);
19MODULE_PARM_DESC(debug, "enable verbose debug messages"); 19MODULE_PARM_DESC(debug, "enable verbose debug messages");
20 20
21#define PREFIX "tea5761"
22
23struct tea5761_priv { 21struct 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));