Commit bdba90df authored by Michael Ira Krufky's avatar Michael Ira Krufky Committed by Mauro Carvalho Chehab

[media] lgdt3305: we only need to pass state into lgdt3305_mpeg_mode_polarity()

Simplify the code a little bit by removing some uneeded arguments
to lgdt3305_mpeg_mode_polarity().
Signed-off-by: default avatarMichael Ira Krufky <mkrufky@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 91de062f
...@@ -236,12 +236,12 @@ static inline int lgdt3305_mpeg_mode(struct lgdt3305_state *state, ...@@ -236,12 +236,12 @@ static inline int lgdt3305_mpeg_mode(struct lgdt3305_state *state,
return lgdt3305_set_reg_bit(state, LGDT3305_TP_CTRL_1, 5, mode); return lgdt3305_set_reg_bit(state, LGDT3305_TP_CTRL_1, 5, mode);
} }
static int lgdt3305_mpeg_mode_polarity(struct lgdt3305_state *state, static int lgdt3305_mpeg_mode_polarity(struct lgdt3305_state *state)
enum lgdt3305_tp_clock_edge edge,
enum lgdt3305_tp_valid_polarity valid)
{ {
u8 val; u8 val;
int ret; int ret;
enum lgdt3305_tp_clock_edge edge = state->cfg->tpclk_edge;
enum lgdt3305_tp_valid_polarity valid = state->cfg->tpvalid_polarity;
lg_dbg("edge = %d, valid = %d\n", edge, valid); lg_dbg("edge = %d, valid = %d\n", edge, valid);
...@@ -740,9 +740,7 @@ static int lgdt3304_set_parameters(struct dvb_frontend *fe) ...@@ -740,9 +740,7 @@ static int lgdt3304_set_parameters(struct dvb_frontend *fe)
goto fail; goto fail;
/* lgdt3305_mpeg_mode_polarity calls lgdt3305_soft_reset */ /* lgdt3305_mpeg_mode_polarity calls lgdt3305_soft_reset */
ret = lgdt3305_mpeg_mode_polarity(state, ret = lgdt3305_mpeg_mode_polarity(state);
state->cfg->tpclk_edge,
state->cfg->tpvalid_polarity);
fail: fail:
return ret; return ret;
} }
...@@ -806,9 +804,7 @@ static int lgdt3305_set_parameters(struct dvb_frontend *fe) ...@@ -806,9 +804,7 @@ static int lgdt3305_set_parameters(struct dvb_frontend *fe)
goto fail; goto fail;
/* lgdt3305_mpeg_mode_polarity calls lgdt3305_soft_reset */ /* lgdt3305_mpeg_mode_polarity calls lgdt3305_soft_reset */
ret = lgdt3305_mpeg_mode_polarity(state, ret = lgdt3305_mpeg_mode_polarity(state);
state->cfg->tpclk_edge,
state->cfg->tpvalid_polarity);
fail: fail:
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment