diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-01-02 15:00:17 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-02-14 00:10:13 +0100 |
commit | c1b31b1e8248a42e689000bf43e63ba8ee49f709 (patch) | |
tree | c98d8a1bb8fa559fbe3a48e8c84f232aa97969e0 /drivers/media/dvb-core | |
parent | [media] cx231xx: add media controller support (diff) | |
download | linux-c1b31b1e8248a42e689000bf43e63ba8ee49f709.tar.xz linux-c1b31b1e8248a42e689000bf43e63ba8ee49f709.zip |
[media] dvb_frontend: add media controller support for DVB frontend
Now that the dvb core is capable of registering devices via the
media controller, add support for the DVB frontend devices.
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/dvb-core')
-rw-r--r-- | drivers/media/dvb-core/dvb_frontend.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/dvb-core/dvb_frontend.c b/drivers/media/dvb-core/dvb_frontend.c index 2cf30576bf39..2564422278df 100644 --- a/drivers/media/dvb-core/dvb_frontend.c +++ b/drivers/media/dvb-core/dvb_frontend.c @@ -2612,11 +2612,14 @@ int dvb_register_frontend(struct dvb_adapter* dvb, struct dvb_frontend* fe) { struct dvb_frontend_private *fepriv; - static const struct dvb_device dvbdev_template = { + const struct dvb_device dvbdev_template = { .users = ~0, .writers = 1, .readers = (~0)-1, .fops = &dvb_frontend_fops, +#if defined(CONFIG_MEDIA_CONTROLLER_DVB) + .name = fe->ops.info.name, +#endif .kernel_ioctl = dvb_frontend_ioctl }; |