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:
9f0bf36
)
[media] media: rc: constify struct proto_names
author
Heiner Kallweit
<hkallweit1@gmail.com>
Mon, 16 Nov 2015 19:52:17 +0000
(17:52 -0200)
committer
Mauro Carvalho Chehab
<mchehab@osg.samsung.com>
Thu, 19 Nov 2015 13:38:14 +0000
(11:38 -0200)
Declare struct proto_names and its member name as const.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
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 ba5df4b81b9d212994ccd4499a0164ad9906099e..9d05d03caa13b68e8983afffc7dcd47c3a73d64c 100644
(file)
--- a/
drivers/media/rc/rc-main.c
+++ b/
drivers/media/rc/rc-main.c
@@
-777,9
+777,9
@@
static struct class rc_class = {
* used by the sysfs protocols file. Note that the order
* of the entries is relevant.
*/
-static struct {
+static
const
struct {
u64 type;
- c
har
*name;
+ c
onst char
*name;
const char *module_name;
} proto_names[] = {
{ RC_BIT_NONE, "none", NULL },