Skip to content

Commit

Permalink
[media] it913x: remove unused af9033 demod tuner config inits
Browse files Browse the repository at this point in the history
Those are demodulator init tables according to used tuner tuner
config. af9033 demod driver does those inits currently and due
to that these duplicate inits could be removed.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed Mar 21, 2013
1 parent dc4a2c4 commit d423e10
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 594 deletions.
6 changes: 0 additions & 6 deletions drivers/media/dvb-frontends/af9033.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,12 +285,6 @@ static int af9033_init(struct dvb_frontend *fe)
goto err;
}

/*
* FIXME: These inits are logically property of demodulator driver
* (that driver), but currently in case of IT9135 those are done by
* tuner driver.
*/

/* load OFSM settings */
dev_dbg(&state->i2c->dev, "%s: load ofsm settings\n", __func__);
switch (state->cfg.tuner) {
Expand Down
30 changes: 0 additions & 30 deletions drivers/media/tuners/it913x.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,40 +141,10 @@ static int it913x_init(struct dvb_frontend *fe)
{
struct it913x_state *state = fe->tuner_priv;
int ret, i, reg;
struct it913xset *set_lna;
u8 val, nv_val;
u8 nv[] = {48, 32, 24, 16, 12, 8, 6, 4, 2};
u8 b[2];

/* LNA Scripts */
switch (state->tuner_type) {
case AF9033_TUNER_IT9135_51:
set_lna = it9135_51;
break;
case AF9033_TUNER_IT9135_52:
set_lna = it9135_52;
break;
case AF9033_TUNER_IT9135_60:
set_lna = it9135_60;
break;
case AF9033_TUNER_IT9135_61:
set_lna = it9135_61;
break;
case AF9033_TUNER_IT9135_62:
set_lna = it9135_62;
break;
case AF9033_TUNER_IT9135_38:
default:
set_lna = it9135_38;
}

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)
return ret;

if (state->chip_ver == 2) {
ret = it913x_wr_reg(state, PRO_DMOD, TRIGGER_OFSM, 0x1);
if (ret < 0)
Expand Down
Loading

0 comments on commit d423e10

Please sign in to comment.