소스 검색

[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>
Heiner Kallweit 10 년 전
부모
커밋
53df877717
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      drivers/media/rc/rc-main.c

+ 2 - 2
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			},