From: Jingoo Han Date: Tue, 22 Jan 2013 05:59:29 +0000 (-0800) Subject: leds: wm831x: add missing const X-Git-Tag: MMI-PSA29.97-13-9~14953^2~43 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8a4529a38d38f53657769b942f6fc5d34f2c64b5;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git leds: wm831x: add missing const Fixed the checkpatch warning as below: WARNING: static const char * array should probably be static const char * const Signed-off-by: Jingoo Han Signed-off-by: Bryan Wu --- diff --git a/drivers/leds/leds-wm831x-status.c b/drivers/leds/leds-wm831x-status.c index 74a24cf897c3..6bd5c679d877 100644 --- a/drivers/leds/leds-wm831x-status.c +++ b/drivers/leds/leds-wm831x-status.c @@ -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",