diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2008-09-10 00:39:20 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-12 07:37:09 -0400 |
commit | ebb8d68a5c8c236acd8e8cf8f0d6046e027a8e21 (patch) | |
tree | d748a4ba02bcc4ce1f51ab0a840fee49795b9746 /drivers/media | |
parent | 48aa739164ca6430b8b1da12ea367b44bb14ce82 (diff) |
V4L/DVB (9048): add a general-purpose callback pointer to struct dvb_frontend
Remove tuner_callback pointers from tuner driver configuration
and private state structures, replaced with a general-purpose
callback pointer within struct dvb_frontend.
A new parameter is added to the callback function, called
component. This allows us to use this callback pointer by
frontend components other than the tuner, if need be. So
far, this is only used by tuner drivers.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/dvb/dvb-core/dvb_frontend.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.h b/drivers/media/dvb/dvb-core/dvb_frontend.h index 1c575402814d..3055301ff3ca 100644 --- a/drivers/media/dvb/dvb-core/dvb_frontend.h +++ b/drivers/media/dvb/dvb-core/dvb_frontend.h | |||
@@ -220,6 +220,8 @@ struct dvb_frontend { | |||
220 | void *sec_priv; | 220 | void *sec_priv; |
221 | void *analog_demod_priv; | 221 | void *analog_demod_priv; |
222 | struct dtv_frontend_properties dtv_property_cache; | 222 | struct dtv_frontend_properties dtv_property_cache; |
223 | #define DVB_FRONTEND_COMPONENT_TUNER 0 | ||
224 | int (*callback)(void *adapter_priv, int component, int cmd, int arg); | ||
223 | }; | 225 | }; |
224 | 226 | ||
225 | extern int dvb_register_frontend(struct dvb_adapter *dvb, | 227 | extern int dvb_register_frontend(struct dvb_adapter *dvb, |