aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tda9887.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-12-08 15:06:30 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:03:27 -0500
commitc7919d520f4c9a064ae14bc4dd170c4c12ead2af (patch)
treea7cbff8f2a09c710942783a84cb44098ed1507d8 /drivers/media/video/tda9887.c
parent6881647cce09931f3d787ab83b5250436427ceb9 (diff)
V4L/DVB (6783): tuner: combine set_tv_freq and set_radio_freq into a single set_params method
We can tell whether we are tuning television or radio by testing for struct analog_parameters *params->mode == V4L2_TUNER_RADIO There is no longer any need for separate set_tv_freq and set_radio_freq functions in the analog tuner demodulator modules. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/tda9887.c')
-rw-r--r--drivers/media/video/tda9887.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/tda9887.c b/drivers/media/video/tda9887.c
index dfa2964d7ef3..d506d4bf8253 100644
--- a/drivers/media/video/tda9887.c
+++ b/drivers/media/video/tda9887.c
@@ -622,7 +622,8 @@ static void tda9887_standby(struct dvb_frontend *fe)
622 tda9887_configure(fe); 622 tda9887_configure(fe);
623} 623}
624 624
625static void tda9887_set_freq(struct dvb_frontend *fe, unsigned int freq) 625static void tda9887_set_params(struct dvb_frontend *fe,
626 struct analog_parameters *params)
626{ 627{
627 tda9887_configure(fe); 628 tda9887_configure(fe);
628} 629}
@@ -634,8 +635,7 @@ static void tda9887_release(struct dvb_frontend *fe)
634} 635}
635 636
636static struct analog_tuner_ops tda9887_tuner_ops = { 637static struct analog_tuner_ops tda9887_tuner_ops = {
637 .set_tv_freq = tda9887_set_freq, 638 .set_params = tda9887_set_params,
638 .set_radio_freq = tda9887_set_freq,
639 .standby = tda9887_standby, 639 .standby = tda9887_standby,
640 .tuner_status = tda9887_tuner_status, 640 .tuner_status = tda9887_tuner_status,
641 .get_afc = tda9887_get_afc, 641 .get_afc = tda9887_get_afc,