summaryrefslogtreecommitdiffstats
path: root/drivers/media/rc/rc-main.c
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-19 10:22:15 +0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2017-10-04 20:09:32 +0200
commitf03f02f9d261902a5761f02ff03a0620ed4f9d0d (patch)
tree9a109956afab995e4db1650a6838c85754aec3a0 /drivers/media/rc/rc-main.c
parent[media] media: rc: constify usb_device_id (diff)
downloadlinux-f03f02f9d261902a5761f02ff03a0620ed4f9d0d.tar.xz
linux-f03f02f9d261902a5761f02ff03a0620ed4f9d0d.zip
[media] media: rc: make device_type const
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>
Diffstat (limited to 'drivers/media/rc/rc-main.c')
-rw-r--r--drivers/media/rc/rc-main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c
index 981cccd6b988..33bddba6e541 100644
--- a/drivers/media/rc/rc-main.c
+++ b/drivers/media/rc/rc-main.c
@@ -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,
};