]> git.baikalelectronics.ru Git - kernel.git/commit
backlight: Declare backlight_types[] const
authorBart Van Assche <bvanassche@acm.org>
Sat, 10 Sep 2011 18:13:01 +0000 (20:13 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 10 Sep 2011 21:00:02 +0000 (14:00 -0700)
commitbd79f9f39ac30a5c68aa347b4c822f953d32dfc3
tree8be90102bb2e3db8eb30fa23a9d271ce1c5183dc
parent94d7b974691dcd83ad404a635a55d79641002eff
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 cd7ae1ff0efb
("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>
drivers/video/backlight/backlight.c