Skip to contentSkip to conversation

backlight: Declare backlight_types[] const

PATCH New Bart Van Assche 1 participant 1 message Sep 10, 2011

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

PATCH 1/1 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 bb7ca747f8d6243b3943c5b133048652020f4a50, via which the "const char const *" construct was introduced. The duplicate const was detected by sparse.

Cc Matthew Garrett <[email protected]>
Cc Richard Purdie <[email protected]>
Cc Florian Tobias Schandinat <[email protected]>
Cc Andrew Morton <[email protected]>
Cc Linus Torvalds <[email protected]>
---
 drivers/video/backlight/backlight.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/video/backlight/backlight.c +1 -1
index 80d292f..7363c1b 100644
@@ -19,7 +19,7 @@
 #include <asm/backlight.h>
 #endif
 
-static const char const *backlight_types[] = {
+static const char *const backlight_types[] = {
 	[BACKLIGHT_RAW] = "raw",
 	[BACKLIGHT_PLATFORM] = "platform",
 	[BACKLIGHT_FIRMWARE] = "firmware",
Signature · 1 line
1.7.3.4