diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2015-11-16 19:52:17 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-11-19 13:38:14 (GMT) |
commit | 53df87771715d6a68013be404350074bec9ad8db (patch) | |
tree | 52f65268be837be06faab369692621d1b6511002 /drivers/media/rc/rc-main.c | |
parent | 9f0bf366d70beaae64975dcb89272ea6d6fc4a03 (diff) | |
download | linux-53df87771715d6a68013be404350074bec9ad8db.tar.xz |
[media] media: rc: constify struct proto_names
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>
Diffstat (limited to 'drivers/media/rc/rc-main.c')
-rw-r--r-- | drivers/media/rc/rc-main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c index ba5df4b..9d05d03 100644 --- 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; - char *name; + const char *name; const char *module_name; } proto_names[] = { { RC_BIT_NONE, "none", NULL }, |