From: Bart Van Assche Date: Sat, 10 Sep 2011 18:13:01 +0000 (+0200) Subject: backlight: Declare backlight_types[] const X-Git-Tag: v3.1-rc6~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c338bfb5ecf6c36b2112479691d69db4c2b5a78a;p=profile%2Fcommon%2Fkernel-common.git backlight: Declare backlight_types[] const Since backlight_types[] isn't modified, let's declare it const. That was probably the intention of the author of commit bb7ca747f8d6 ("backlight: add backlight type"), via which the "const char const *" construct was introduced. The duplicate const was detected by sparse. Signed-off-by: Bart Van Assche Cc: Matthew Garrett Cc: Richard Purdie Cc: Florian Tobias Schandinat Cc: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/backlight/backlight.c b/drivers/video/backlight/backlight.c index 80d292f..7363c1b 100644 --- a/drivers/video/backlight/backlight.c +++ b/drivers/video/backlight/backlight.c @@ -19,7 +19,7 @@ #include #endif -static const char const *backlight_types[] = { +static const char *const backlight_types[] = { [BACKLIGHT_RAW] = "raw", [BACKLIGHT_PLATFORM] = "platform", [BACKLIGHT_FIRMWARE] = "firmware",