[media] media: rc: constify struct proto_names
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 16 Nov 2015 19:52:17 +0000 (17:52 -0200)
committerMauro 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

index ba5df4b81b9d212994ccd4499a0164ad9906099e..9d05d03caa13b68e8983afffc7dcd47c3a73d64c 100644 (file)
@@ -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                    },
This page took 0.026802 seconds and 5 git commands to generate.