leds: wm831x: add missing const
authorJingoo Han <jg1.han@samsung.com>
Tue, 22 Jan 2013 05:59:29 +0000 (21:59 -0800)
committerBryan Wu <cooloney@gmail.com>
Sat, 2 Feb 2013 01:47:06 +0000 (17:47 -0800)
Fixed the checkpatch warning as below:

  WARNING: static const char * array should probably be static const char * const

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/leds-wm831x-status.c

index 74a24cf897c386952f47bdb0a9df319808f2d5a6..6bd5c679d877fd2dcf4e447b781ec6d3363f2546 100644 (file)
@@ -157,7 +157,7 @@ static int wm831x_status_blink_set(struct led_classdev *led_cdev,
        return ret;
 }
 
-static const char *led_src_texts[] = {
+static const char * const led_src_texts[] = {
        "otp",
        "power",
        "charger",