aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2013-02-28 18:54:44 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-03-21 17:59:33 -0400
commitcfd08f0fb9b761c44e4d853c5b38f7fc7c3f5325 (patch)
treec2fcf8c6c68b194fee23ab4728a7354d605add7d
parentc0d300a66979c7a836c75f6e2d33727543245368 (diff)
[media] it913x: use dev_foo() logging
Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-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)
175 default: 175 default:
176 set_lna = it9135_38; 176 set_lna = it9135_38;
177 } 177 }
178 pr_info("Tuner LNA type :%02x\n", state->tuner_type); 178
179 dev_dbg(&state->i2c_adap->dev, "%s: Tuner LNA type :%02x\n",
180 KBUILD_MODNAME, state->tuner_type);
179 181
180 ret = it913x_script_loader(state, set_lna); 182 ret = it913x_script_loader(state, set_lna);
181 if (ret < 0) 183 if (ret < 0)
@@ -226,7 +228,8 @@ static int it913x_init(struct dvb_frontend *fe)
226 } 228 }
227 state->tun_fn_min = state->tun_xtal * reg; 229 state->tun_fn_min = state->tun_xtal * reg;
228 state->tun_fn_min /= (state->tun_fdiv * nv_val); 230 state->tun_fn_min /= (state->tun_fdiv * nv_val);
229 pr_debug("Tuner fn_min %d\n", state->tun_fn_min); 231 dev_dbg(&state->i2c_adap->dev, "%s: Tuner fn_min %d\n", __func__,
232 state->tun_fn_min);
230 233
231 if (state->chip_ver > 1) 234 if (state->chip_ver > 1)
232 msleep(50); 235 msleep(50);
@@ -272,7 +275,8 @@ static int it9137_set_params(struct dvb_frontend *fe)
272 else 275 else
273 set_tuner = set_it9137_template; 276 set_tuner = set_it9137_template;
274 277
275 pr_debug("Tuner Frequency %d Bandwidth %d\n", frequency, bandwidth); 278 dev_dbg(&state->i2c_adap->dev, "%s: Tuner Frequency %d Bandwidth %d\n",
279 __func__, frequency, bandwidth);
276 280
277 if (frequency >= 51000 && frequency <= 440000) { 281 if (frequency >= 51000 && frequency <= 440000) {
278 l_band = 0; 282 l_band = 0;
@@ -387,13 +391,15 @@ static int it9137_set_params(struct dvb_frontend *fe)
387 set_tuner[3].reg[0] = temp_f & 0xff; 391 set_tuner[3].reg[0] = temp_f & 0xff;
388 set_tuner[4].reg[0] = (temp_f >> 8) & 0xff; 392 set_tuner[4].reg[0] = (temp_f >> 8) & 0xff;
389 393
390 pr_debug("High Frequency = %04x\n", temp_f); 394 dev_dbg(&state->i2c_adap->dev, "%s: High Frequency = %04x\n",
395 __func__, temp_f);
391 396
392 /* Lower frequency */ 397 /* Lower frequency */
393 set_tuner[5].reg[0] = freq & 0xff; 398 set_tuner[5].reg[0] = freq & 0xff;
394 set_tuner[6].reg[0] = (freq >> 8) & 0xff; 399 set_tuner[6].reg[0] = (freq >> 8) & 0xff;
395 400
396 pr_debug("low Frequency = %04x\n", freq); 401 dev_dbg(&state->i2c_adap->dev, "%s: low Frequency = %04x\n",
402 __func__, freq);
397 403
398 ret = it913x_script_loader(state, set_tuner); 404 ret = it913x_script_loader(state, set_tuner);
399 405