summaryrefslogtreecommitdiff
path: root/drivers/media/tuners/it913x.c
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2013-03-01 03:54:44 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-03-22 01:59:33 +0400
commitcfd08f0fb9b761c44e4d853c5b38f7fc7c3f5325 (patch)
treec2fcf8c6c68b194fee23ab4728a7354d605add7d /drivers/media/tuners/it913x.c
parentc0d300a66979c7a836c75f6e2d33727543245368 (diff)
downloadlinux-cfd08f0fb9b761c44e4d853c5b38f7fc7c3f5325.tar.xz
[media] it913x: use dev_foo() logging
Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/tuners/it913x.c')
-rw-r--r--drivers/media/tuners/it913x.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/drivers/media/tuners/it913x.c b/drivers/media/tuners/it913x.c
index 1cb97092f562..66e003f5316e 100644
--- a/drivers/media/tuners/it913x.c
+++ b/drivers/media/tuners/it913x.c
@@ -175,7 +175,9 @@ static int it913x_init(struct dvb_frontend *fe)
default:
set_lna = it9135_38;
}
- pr_info("Tuner LNA type :%02x\n", state->tuner_type);
+
+ dev_dbg(&state->i2c_adap->dev, "%s: Tuner LNA type :%02x\n",
+ KBUILD_MODNAME, state->tuner_type);
ret = it913x_script_loader(state, set_lna);
if (ret < 0)
@@ -226,7 +228,8 @@ static int it913x_init(struct dvb_frontend *fe)
}
state->tun_fn_min = state->tun_xtal * reg;
state->tun_fn_min /= (state->tun_fdiv * nv_val);
- pr_debug("Tuner fn_min %d\n", state->tun_fn_min);
+ dev_dbg(&state->i2c_adap->dev, "%s: Tuner fn_min %d\n", __func__,
+ state->tun_fn_min);
if (state->chip_ver > 1)
msleep(50);
@@ -272,7 +275,8 @@ static int it9137_set_params(struct dvb_frontend *fe)
else
set_tuner = set_it9137_template;
- pr_debug("Tuner Frequency %d Bandwidth %d\n", frequency, bandwidth);
+ dev_dbg(&state->i2c_adap->dev, "%s: Tuner Frequency %d Bandwidth %d\n",
+ __func__, frequency, bandwidth);
if (frequency >= 51000 && frequency <= 440000) {
l_band = 0;
@@ -387,13 +391,15 @@ static int it9137_set_params(struct dvb_frontend *fe)
set_tuner[3].reg[0] = temp_f & 0xff;
set_tuner[4].reg[0] = (temp_f >> 8) & 0xff;
- pr_debug("High Frequency = %04x\n", temp_f);
+ dev_dbg(&state->i2c_adap->dev, "%s: High Frequency = %04x\n",
+ __func__, temp_f);
/* Lower frequency */
set_tuner[5].reg[0] = freq & 0xff;
set_tuner[6].reg[0] = (freq >> 8) & 0xff;
- pr_debug("low Frequency = %04x\n", freq);
+ dev_dbg(&state->i2c_adap->dev, "%s: low Frequency = %04x\n",
+ __func__, freq);
ret = it913x_script_loader(state, set_tuner);