aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tda8290.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-10-21 12:40:56 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:01:07 -0500
commit1dde7a4fa2b197d298c3f1b97a7f78fd1c3a1bda (patch)
treed197c9d1fc5fc0d4ad99481621a9fd99b567e27b /drivers/media/video/tda8290.c
parent5bea1cd3871351d70cc7624af138f8aa68b7be77 (diff)
V4L/DVB (6436): tuner: move analog_tuner_ops into dvb_frontend_ops
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/tda8290.c')
-rw-r--r--drivers/media/video/tda8290.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/tda8290.c b/drivers/media/video/tda8290.c
index a38ed9db6403..da5e5a8169fa 100644
--- a/drivers/media/video/tda8290.c
+++ b/drivers/media/video/tda8290.c
@@ -519,7 +519,7 @@ static void tda829x_release(struct tuner *t)
519 t->priv = NULL; 519 t->priv = NULL;
520} 520}
521 521
522static struct tuner_operations tda8290_tuner_ops = { 522static struct analog_tuner_ops tda8290_tuner_ops = {
523 .set_tv_freq = tda8290_set_freq, 523 .set_tv_freq = tda8290_set_freq,
524 .set_radio_freq = tda8290_set_freq, 524 .set_radio_freq = tda8290_set_freq,
525 .has_signal = tda8290_has_signal, 525 .has_signal = tda8290_has_signal,
@@ -527,7 +527,7 @@ static struct tuner_operations tda8290_tuner_ops = {
527 .release = tda829x_release, 527 .release = tda829x_release,
528}; 528};
529 529
530static struct tuner_operations tda8295_tuner_ops = { 530static struct analog_tuner_ops tda8295_tuner_ops = {
531 .set_tv_freq = tda8295_set_freq, 531 .set_tv_freq = tda8295_set_freq,
532 .set_radio_freq = tda8295_set_freq, 532 .set_radio_freq = tda8295_set_freq,
533 .has_signal = tda8295_has_signal, 533 .has_signal = tda8295_has_signal,
@@ -612,7 +612,7 @@ int tda8290_attach(struct tuner *t)
612 if (t->fe.ops.tuner_ops.sleep) 612 if (t->fe.ops.tuner_ops.sleep)
613 t->fe.ops.tuner_ops.sleep(&t->fe); 613 t->fe.ops.tuner_ops.sleep(&t->fe);
614 614
615 memcpy(&t->ops, &tda8290_tuner_ops, sizeof(struct tuner_operations)); 615 t->fe.ops.analog_demod_ops = &tda8290_tuner_ops;
616 616
617 tuner_info("type set to %s\n", t->i2c.name); 617 tuner_info("type set to %s\n", t->i2c.name);
618 618
@@ -703,7 +703,7 @@ int tda8295_attach(struct tuner *t)
703 priv->tda827x_ver |= 1; /* signifies 8295 vs 8290 */ 703 priv->tda827x_ver |= 1; /* signifies 8295 vs 8290 */
704 tuner_info("type set to %s\n", t->i2c.name); 704 tuner_info("type set to %s\n", t->i2c.name);
705 705
706 memcpy(&t->ops, &tda8295_tuner_ops, sizeof(struct tuner_operations)); 706 t->fe.ops.analog_demod_ops = &tda8295_tuner_ops;
707 707
708 priv->cfg.tda827x_lpsel = 0; 708 priv->cfg.tda827x_lpsel = 0;
709 t->mode = V4L2_TUNER_ANALOG_TV; 709 t->mode = V4L2_TUNER_ANALOG_TV;