diff options
Diffstat (limited to 'drivers/media/dvb/frontends/stv0288.c')
-rw-r--r-- | drivers/media/dvb/frontends/stv0288.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/drivers/media/dvb/frontends/stv0288.c b/drivers/media/dvb/frontends/stv0288.c index 0aa3962ff18b..fb5548a82208 100644 --- a/drivers/media/dvb/frontends/stv0288.c +++ b/drivers/media/dvb/frontends/stv0288.c | |||
@@ -452,14 +452,7 @@ static int stv0288_set_property(struct dvb_frontend *fe, struct dtv_property *p) | |||
452 | return 0; | 452 | return 0; |
453 | } | 453 | } |
454 | 454 | ||
455 | static int stv0288_get_property(struct dvb_frontend *fe, struct dtv_property *p) | 455 | static int stv0288_set_frontend(struct dvb_frontend *fe) |
456 | { | ||
457 | dprintk("%s(..)\n", __func__); | ||
458 | return 0; | ||
459 | } | ||
460 | |||
461 | static int stv0288_set_frontend(struct dvb_frontend *fe, | ||
462 | struct dvb_frontend_parameters *dfp) | ||
463 | { | 456 | { |
464 | struct stv0288_state *state = fe->demodulator_priv; | 457 | struct stv0288_state *state = fe->demodulator_priv; |
465 | struct dtv_frontend_properties *c = &fe->dtv_property_cache; | 458 | struct dtv_frontend_properties *c = &fe->dtv_property_cache; |
@@ -481,10 +474,8 @@ static int stv0288_set_frontend(struct dvb_frontend *fe, | |||
481 | state->config->set_ts_params(fe, 0); | 474 | state->config->set_ts_params(fe, 0); |
482 | 475 | ||
483 | /* only frequency & symbol_rate are used for tuner*/ | 476 | /* only frequency & symbol_rate are used for tuner*/ |
484 | dfp->frequency = c->frequency; | ||
485 | dfp->u.qpsk.symbol_rate = c->symbol_rate; | ||
486 | if (fe->ops.tuner_ops.set_params) { | 477 | if (fe->ops.tuner_ops.set_params) { |
487 | fe->ops.tuner_ops.set_params(fe, dfp); | 478 | fe->ops.tuner_ops.set_params(fe); |
488 | if (fe->ops.i2c_gate_ctrl) | 479 | if (fe->ops.i2c_gate_ctrl) |
489 | fe->ops.i2c_gate_ctrl(fe, 0); | 480 | fe->ops.i2c_gate_ctrl(fe, 0); |
490 | } | 481 | } |
@@ -545,10 +536,9 @@ static void stv0288_release(struct dvb_frontend *fe) | |||
545 | } | 536 | } |
546 | 537 | ||
547 | static struct dvb_frontend_ops stv0288_ops = { | 538 | static struct dvb_frontend_ops stv0288_ops = { |
548 | 539 | .delsys = { SYS_DVBS }, | |
549 | .info = { | 540 | .info = { |
550 | .name = "ST STV0288 DVB-S", | 541 | .name = "ST STV0288 DVB-S", |
551 | .type = FE_QPSK, | ||
552 | .frequency_min = 950000, | 542 | .frequency_min = 950000, |
553 | .frequency_max = 2150000, | 543 | .frequency_max = 2150000, |
554 | .frequency_stepsize = 1000, /* kHz for QPSK frontends */ | 544 | .frequency_stepsize = 1000, /* kHz for QPSK frontends */ |
@@ -578,7 +568,6 @@ static struct dvb_frontend_ops stv0288_ops = { | |||
578 | .set_voltage = stv0288_set_voltage, | 568 | .set_voltage = stv0288_set_voltage, |
579 | 569 | ||
580 | .set_property = stv0288_set_property, | 570 | .set_property = stv0288_set_property, |
581 | .get_property = stv0288_get_property, | ||
582 | .set_frontend = stv0288_set_frontend, | 571 | .set_frontend = stv0288_set_frontend, |
583 | }; | 572 | }; |
584 | 573 | ||