Skip to content

Commit

Permalink
[media] media: rc: constify struct proto_names
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Heiner Kallweit authored and Mauro Carvalho Chehab committed Nov 19, 2015
1 parent 9f0bf36 commit 53df877
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/rc/rc-main.c
Original file line number Diff line number Diff line change
@@ -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 },

0 comments on commit 53df877

Please sign in to comment.