Skip to contentSkip to conversation

media: rc: constify struct proto_names

PATCH In review Heiner Kallweit 1 participant 1 message Nov 16, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/8 media: rc: constify struct proto_names

Declare struct proto_names and its member name as const.

---
 drivers/media/rc/rc-main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/media/rc/rc-main.c +2 -2
index cede8bc..f2d5c50 100644
@@ -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			},
Signature · 1 line
2.6.2