Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <bvanassche@acm.org>
Cc: Matthew Garrett <mjg@redhat.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Bart Van Assche and committed by
Linus Torvalds
c338bfb5 290a1cc4

+1 -1
+1 -1
drivers/video/backlight/backlight.c
··· 19 19 #include <asm/backlight.h> 20 20 #endif 21 21 22 - static const char const *backlight_types[] = { 22 + static const char *const backlight_types[] = { 23 23 [BACKLIGHT_RAW] = "raw", 24 24 [BACKLIGHT_PLATFORM] = "platform", 25 25 [BACKLIGHT_FIRMWARE] = "firmware",