summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tda9887.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-12-08 15:06:30 -0500
committerMichael Krufky <mkrufky@linuxtv.org>2007-12-08 15:06:30 -0500
commit017775baf90cbd3c43a14e4d10e00e1aca9f98f2 (patch)
treefbf6c16cc47c1ef61a50941a0d99d9606b3952ab /linux/drivers/media/video/tda9887.c
parent9cb13d03db18063f6095559ae6578d2c264f3499 (diff)
downloadmediapointer-dvb-s2-017775baf90cbd3c43a14e4d10e00e1aca9f98f2.tar.gz
mediapointer-dvb-s2-017775baf90cbd3c43a14e4d10e00e1aca9f98f2.tar.bz2
tuner: combine set_tv_freq and set_radio_freq into a single set_params method
From: Michael Krufky <mkrufky@linuxtv.org> 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>
Diffstat (limited to 'linux/drivers/media/video/tda9887.c')
-rw-r--r--linux/drivers/media/video/tda9887.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/drivers/media/video/tda9887.c b/linux/drivers/media/video/tda9887.c
index cefba2a14..12f8ca279 100644
--- a/linux/drivers/media/video/tda9887.c
+++ b/linux/drivers/media/video/tda9887.c
@@ -633,7 +633,8 @@ static void tda9887_standby(struct dvb_frontend *fe)
tda9887_configure(fe);
}
-static void tda9887_set_freq(struct dvb_frontend *fe, unsigned int freq)
+static void tda9887_set_params(struct dvb_frontend *fe,
+ struct analog_parameters *params)
{
tda9887_configure(fe);
}
@@ -645,8 +646,7 @@ static void tda9887_release(struct dvb_frontend *fe)
}
static struct analog_tuner_ops tda9887_tuner_ops = {
- .set_tv_freq = tda9887_set_freq,
- .set_radio_freq = tda9887_set_freq,
+ .set_params = tda9887_set_params,
.standby = tda9887_standby,
.tuner_status = tda9887_tuner_status,
.get_afc = tda9887_get_afc,