diff options
author | Rafael Lourenço de Lima Chehab <chehabrafael@gmail.com> | 2015-02-12 08:37:25 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-02-26 09:49:07 -0300 |
commit | 6f6c77d8d2e2fc77395d6bb9ed670161f18b6bd4 (patch) | |
tree | abd9e0092256574250ce3689334a4d319e1e832e /drivers/media/usb/dvb-usb-v2/dvb_usb.h | |
parent | 4b208f8b561ffa5f3b7f6887bf8dc3038c67eee9 (diff) | |
download | linux-6f6c77d8d2e2fc77395d6bb9ed670161f18b6bd4.tar.gz linux-6f6c77d8d2e2fc77395d6bb9ed670161f18b6bd4.tar.bz2 linux-6f6c77d8d2e2fc77395d6bb9ed670161f18b6bd4.zip |
[media] dvb-usb-v2: add support for the media controller at USB driver
Create a struct media_device and add it to the dvb adapter.
Please notice that the tuner is not mapped yet by the dvb core.
[mchehab@osg.samsung.com: use config option MEDIA_CONTROLLER_DVB due to a rebase]
Signed-off-by: Rafael Lourenço de Lima Chehab <chehabrafael@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/usb/dvb-usb-v2/dvb_usb.h')
-rw-r--r-- | drivers/media/usb/dvb-usb-v2/dvb_usb.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/usb/dvb-usb-v2/dvb_usb.h b/drivers/media/usb/dvb-usb-v2/dvb_usb.h index 41c6363dff08..dbac1633312a 100644 --- a/drivers/media/usb/dvb-usb-v2/dvb_usb.h +++ b/drivers/media/usb/dvb-usb-v2/dvb_usb.h @@ -25,6 +25,7 @@ #include <linux/usb/input.h> #include <linux/firmware.h> #include <media/rc-core.h> +#include <media/media-device.h> #include "dvb_frontend.h" #include "dvb_demux.h" @@ -391,6 +392,10 @@ struct dvb_usb_device { struct delayed_work rc_query_work; void *priv; + +#if defined(CONFIG_MEDIA_CONTROLLER_DVB) + struct media_device *media_dev; +#endif }; extern int dvb_usbv2_probe(struct usb_interface *, |