summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tda9887.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-12-21 09:18:32 -0500
committerMichael Krufky <mkrufky@linuxtv.org>2007-12-21 09:18:32 -0500
commitf01ebb1a2e7941c78d70b25337f17029e4a1078a (patch)
treec9ee94a5ce7d16cec6ca6fbc8990e55dfda67ea5 /linux/drivers/media/video/tda9887.c
parent519f4cd6a982745152ab63f44945d12df2748659 (diff)
downloadmediapointer-dvb-s2-f01ebb1a2e7941c78d70b25337f17029e4a1078a.tar.gz
mediapointer-dvb-s2-f01ebb1a2e7941c78d70b25337f17029e4a1078a.tar.bz2
include struct analog_demod_ops directly inside struct dvb_frontend
From: Michael Krufky <mkrufky@linuxtv.org> 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>
Diffstat (limited to 'linux/drivers/media/video/tda9887.c')
-rw-r--r--linux/drivers/media/video/tda9887.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/linux/drivers/media/video/tda9887.c b/linux/drivers/media/video/tda9887.c
index 139963e14..5962e39c3 100644
--- a/linux/drivers/media/video/tda9887.c
+++ b/linux/drivers/media/video/tda9887.c
@@ -659,7 +659,7 @@ static void tda9887_release(struct dvb_frontend *fe)
fe->analog_demod_priv = NULL;
}
-static struct analog_tuner_ops tda9887_tuner_ops = {
+static struct analog_demod_ops tda9887_ops = {
.info = {
.name = "TDA9887",
},
@@ -688,7 +688,8 @@ struct dvb_frontend *tda9887_attach(struct dvb_frontend *fe,
tuner_info("tda988[5/6/7] found\n");
- fe->ops.analog_demod_ops = &tda9887_tuner_ops;
+ memcpy(&fe->ops.analog_ops, &tda9887_ops,
+ sizeof(struct analog_demod_ops));
return fe;
}