diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-12-30 14:09:39 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-01-11 15:19:26 +0100 |
commit | ce084d487c8a0731bff5739e735b7bb82b94e53b (patch) | |
tree | c2ed2c46d94a71f9ba8b130058447bf7cdb7bd59 /drivers/media/dvb-core | |
parent | [media] dvbdev: create links on devices with multiple frontends (diff) | |
download | linux-ce084d487c8a0731bff5739e735b7bb82b94e53b.tar.xz linux-ce084d487c8a0731bff5739e735b7bb82b94e53b.zip |
[media] mxl111sf: Add a tuner entity
While mxl111sf may have multiple frontends, it has just one
tuner. Reflect that on the media graph.
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/dvb-core')
-rw-r--r-- | drivers/media/dvb-core/dvbdev.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/dvb-core/dvbdev.h b/drivers/media/dvb-core/dvbdev.h index d7c67baa885e..4aff7bd3dea8 100644 --- a/drivers/media/dvb-core/dvbdev.h +++ b/drivers/media/dvb-core/dvbdev.h @@ -242,6 +242,11 @@ static inline void dvb_register_media_controller(struct dvb_adapter *adap, adap->mdev = mdev; } +static inline struct media_device +*dvb_get_media_controller(struct dvb_adapter *adap) +{ + return adap->mdev; +} #else static inline int dvb_create_media_graph(struct dvb_adapter *adap, @@ -250,6 +255,7 @@ int dvb_create_media_graph(struct dvb_adapter *adap, return 0; }; #define dvb_register_media_controller(a, b) {} +#define dvb_get_media_controller(a) NULL #endif int dvb_generic_open (struct inode *inode, struct file *file); |