提交 c338bfb5 编写于 作者: B Bart Van Assche 提交者: Linus Torvalds

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 bb7ca747
("backlight: add backlight type"), via which the "const char const *"
construct was introduced.  The duplicate const was detected by sparse.
Signed-off-by: NBart 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: NLinus Torvalds <torvalds@linux-foundation.org>
上级 290a1cc4
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include <asm/backlight.h> #include <asm/backlight.h>
#endif #endif
static const char const *backlight_types[] = { static const char *const backlight_types[] = {
[BACKLIGHT_RAW] = "raw", [BACKLIGHT_RAW] = "raw",
[BACKLIGHT_PLATFORM] = "platform", [BACKLIGHT_PLATFORM] = "platform",
[BACKLIGHT_FIRMWARE] = "firmware", [BACKLIGHT_FIRMWARE] = "firmware",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册