mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 bb7ca747f8
("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 <[email protected]>
Cc: Matthew Garrett <[email protected]>
Cc: Richard Purdie <[email protected]>
Cc: Florian Tobias Schandinat <[email protected]>
Cc: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
290a1cc4f7
commit
c338bfb5ec
1 changed files with 1 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue