projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fad16b
)
[media] media: rc: make device_type const
author
Bhumika Goyal
<bhumirks@gmail.com>
Sat, 19 Aug 2017 08:22:15 +0000
(
05:22
-0300)
committer
Mauro 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
patch
|
blob
|
history
diff --git
a/drivers/media/rc/rc-main.c
b/drivers/media/rc/rc-main.c
index 981cccd6b988e179ac751e596c9cc2d0fff7dd27..33bddba6e5413f463ac9b425448d1c1e327bdab1 100644
(file)
--- 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,
};