[media] dmxdev: add support for demux/dvr nodes at media controller
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sat, 3 Jan 2015 01:28:53 +0000 (22:28 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 13 Feb 2015 23:10:13 +0000 (21:10 -0200)
Make the dvb core demux support aware of the media controller and
register the corresponding devices.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-core/dmxdev.c

index abff803ad69a7e9e55818e5fd42d04ff475cd2d5..2835924955a443bc32ae9cca2ab013b3666496d4 100644 (file)
@@ -1136,10 +1136,13 @@ static const struct file_operations dvb_demux_fops = {
        .llseek = default_llseek,
 };
 
-static struct dvb_device dvbdev_demux = {
+static const struct dvb_device dvbdev_demux = {
        .priv = NULL,
        .users = 1,
        .writers = 1,
+#if defined(CONFIG_MEDIA_CONTROLLER_DVB)
+       .name = "demux",
+#endif
        .fops = &dvb_demux_fops
 };
 
@@ -1209,13 +1212,15 @@ static const struct file_operations dvb_dvr_fops = {
        .llseek = default_llseek,
 };
 
-static struct dvb_device dvbdev_dvr = {
+static const struct dvb_device dvbdev_dvr = {
        .priv = NULL,
        .readers = 1,
        .users = 1,
+#if defined(CONFIG_MEDIA_CONTROLLER_DVB)
+       .name = "dvr",
+#endif
        .fops = &dvb_dvr_fops
 };
-
 int dvb_dmxdev_init(struct dmxdev *dmxdev, struct dvb_adapter *dvb_adapter)
 {
        int i;
This page took 0.025315 seconds and 5 git commands to generate.