media: rc: constify struct proto_names
Subsystems (2)
PATCH 3/8 media: rc: constify struct proto_names
Declare struct proto_names and its member name as const.
Signed-off-by Heiner Kallweit <[email protected]>
--- drivers/media/rc/rc-main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/media/rc/rc-main.c +2 -2
@@ -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