aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/dvb/frontends/or51211.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/dvb/frontends/or51211.c b/drivers/media/dvb/frontends/or51211.c
index 2f2c7f88a3a6..d2b52e555428 100644
--- a/drivers/media/dvb/frontends/or51211.c
+++ b/drivers/media/dvb/frontends/or51211.c
@@ -218,13 +218,13 @@ static int or51211_setmode(struct dvb_frontend* fe, int mode)
218 return 0; 218 return 0;
219} 219}
220 220
221static int or51211_set_parameters(struct dvb_frontend* fe, 221static int or51211_set_parameters(struct dvb_frontend *fe)
222 struct dvb_frontend_parameters *param)
223{ 222{
223 struct dtv_frontend_properties *p = &fe->dtv_property_cache;
224 struct or51211_state* state = fe->demodulator_priv; 224 struct or51211_state* state = fe->demodulator_priv;
225 225
226 /* Change only if we are actually changing the channel */ 226 /* Change only if we are actually changing the channel */
227 if (state->current_frequency != param->frequency) { 227 if (state->current_frequency != p->frequency) {
228 if (fe->ops.tuner_ops.set_params) { 228 if (fe->ops.tuner_ops.set_params) {
229 fe->ops.tuner_ops.set_params(fe); 229 fe->ops.tuner_ops.set_params(fe);
230 if (fe->ops.i2c_gate_ctrl) fe->ops.i2c_gate_ctrl(fe, 0); 230 if (fe->ops.i2c_gate_ctrl) fe->ops.i2c_gate_ctrl(fe, 0);
@@ -234,7 +234,7 @@ static int or51211_set_parameters(struct dvb_frontend* fe,
234 or51211_setmode(fe,0); 234 or51211_setmode(fe,0);
235 235
236 /* Update current frequency */ 236 /* Update current frequency */
237 state->current_frequency = param->frequency; 237 state->current_frequency = p->frequency;
238 } 238 }
239 return 0; 239 return 0;
240} 240}
@@ -544,7 +544,7 @@ struct dvb_frontend* or51211_attach(const struct or51211_config* config,
544} 544}
545 545
546static struct dvb_frontend_ops or51211_ops = { 546static struct dvb_frontend_ops or51211_ops = {
547 547 .delsys = { SYS_ATSC, SYS_DVBC_ANNEX_B },
548 .info = { 548 .info = {
549 .name = "Oren OR51211 VSB Frontend", 549 .name = "Oren OR51211 VSB Frontend",
550 .type = FE_ATSC, 550 .type = FE_ATSC,
@@ -561,7 +561,7 @@ static struct dvb_frontend_ops or51211_ops = {
561 .init = or51211_init, 561 .init = or51211_init,
562 .sleep = or51211_sleep, 562 .sleep = or51211_sleep,
563 563
564 .set_frontend_legacy = or51211_set_parameters, 564 .set_frontend = or51211_set_parameters,
565 .get_tune_settings = or51211_get_tune_settings, 565 .get_tune_settings = or51211_get_tune_settings,
566 566
567 .read_status = or51211_read_status, 567 .read_status = or51211_read_status,