summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tea5761.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2008-02-02 22:58:38 -0500
committerMichael Krufky <mkrufky@linuxtv.org>2008-02-02 22:58:38 -0500
commit4d123d17a4874afde71b5362e54296a7ec12c266 (patch)
treeabc86857bcbe1b092887285c6787351d0b1faf95 /linux/drivers/media/video/tea5761.c
parentfb4d18652f9c170bba774056642015fc679637be (diff)
downloadmediapointer-dvb-s2-4d123d17a4874afde71b5362e54296a7ec12c266.tar.gz
mediapointer-dvb-s2-4d123d17a4874afde71b5362e54296a7ec12c266.tar.bz2
remove PREFIX from users of tuner_foo printk macros
From: Michael Krufky <mkrufky@linuxtv.org> 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>
Diffstat (limited to 'linux/drivers/media/video/tea5761.c')
-rw-r--r--linux/drivers/media/video/tea5761.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/linux/drivers/media/video/tea5761.c b/linux/drivers/media/video/tea5761.c
index 3b96d5354..fa1d12d6f 100644
--- a/linux/drivers/media/video/tea5761.c
+++ b/linux/drivers/media/video/tea5761.c
@@ -19,8 +19,6 @@ static int debug;
module_param(debug, int, 0644);
MODULE_PARM_DESC(debug, "enable verbose debug messages");
-#define PREFIX "tea5761"
-
struct tea5761_priv {
struct tuner_i2c_props i2c_props;
@@ -132,7 +130,7 @@ static void tea5761_status_dump(unsigned char *buffer)
frq = 1000 * (div * 32768 / 1000 + FREQ_OFFSET + 225) / 4; /* Freq in KHz */
- printk(PREFIX "Frequency %d.%03d KHz (divider = 0x%04x)\n",
+ printk(KERN_INFO "tea5761: Frequency %d.%03d KHz (divider = 0x%04x)\n",
frq / 1000, frq % 1000, div);
}
@@ -308,6 +306,7 @@ struct dvb_frontend *tea5761_attach(struct dvb_frontend *fe,
priv->i2c_props.addr = i2c_addr;
priv->i2c_props.adap = i2c_adap;
+ priv->i2c_props.name = "tea5761";
memcpy(&fe->ops.tuner_ops, &tea5761_tuner_ops,
sizeof(struct dvb_tuner_ops));