]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
[media] media: rc: make device_type const
authorBhumika Goyal <bhumirks@gmail.com>
Sat, 19 Aug 2017 08:22:15 +0000 (05:22 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 4 Oct 2017 18:09:32 +0000 (15:09 -0300)
Make this const as it is only stored in the type field of a device
structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/rc/rc-main.c

index 981cccd6b988e179ac751e596c9cc2d0fff7dd27..33bddba6e5413f463ac9b425448d1c1e327bdab1 100644 (file)
@@ -1529,7 +1529,7 @@ static const struct attribute_group rc_dev_wakeup_filter_attr_grp = {
        .attrs  = rc_dev_wakeup_filter_attrs,
 };
 
-static struct device_type rc_dev_type = {
+static const struct device_type rc_dev_type = {
        .release        = rc_dev_release,
        .uevent         = rc_dev_uevent,
 };