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)
}
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);
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;
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);