aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tda9887.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-12-21 09:18:32 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:04:11 -0500
commitbc3e5c7fc20d3c09667067878fb7a55dd9fc041d (patch)
tree81d83ec2aa0b21f8b594d45a398bdefe206ad3e3 /drivers/media/video/tda9887.c
parent9ad89f0104314786138d580ab2c1119e7e470f56 (diff)
V4L/DVB (6881): include struct analog_demod_ops directly inside struct dvb_frontend
Rather than using a pointer, include struct analog_demod_ops directly inside struct dvb_frontend. This will allow us to use dvb_attach in the future, along with removing the need to check the ops structure before having to check the pointer to the method being called. 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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/video/tda9887.c b/drivers/media/video/tda9887.c
index 1b017d52bfb5..d3aabe2d146b 100644
--- a/drivers/media/video/tda9887.c
+++ b/drivers/media/video/tda9887.c
@@ -648,7 +648,7 @@ static void tda9887_release(struct dvb_frontend *fe)
648 fe->analog_demod_priv = NULL; 648 fe->analog_demod_priv = NULL;
649} 649}
650 650
651static struct analog_tuner_ops tda9887_tuner_ops = { 651static struct analog_demod_ops tda9887_ops = {
652 .info = { 652 .info = {
653 .name = "TDA9887", 653 .name = "TDA9887",
654 }, 654 },
@@ -677,7 +677,8 @@ struct dvb_frontend *tda9887_attach(struct dvb_frontend *fe,
677 677
678 tuner_info("tda988[5/6/7] found\n"); 678 tuner_info("tda988[5/6/7] found\n");
679 679
680 fe->ops.analog_demod_ops = &tda9887_tuner_ops; 680 memcpy(&fe->ops.analog_ops, &tda9887_ops,
681 sizeof(struct analog_demod_ops));
681 682
682 return fe; 683 return fe;
683} 684}