From: Olof Johansson Date: Tue, 3 Mar 2015 12:22:33 +0000 (+0100) Subject: platform/chrome: cros_ec_lightbar - fix duplicate const warning X-Git-Tag: v4.1-rc1~11^2~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=377415abab7b49c982475990cd06eef9f33e2ccc;p=karo-tx-linux.git platform/chrome: cros_ec_lightbar - fix duplicate const warning Fix the following sparse warning: drivers/platform/chrome/cros_ec_lightbar.c:254:25: sparse: duplicate const Reported-by: Dan Carpenter Signed-off-by: Olof Johansson Reviewed-by: Gwendal Grignou Signed-off-by: Javier Martinez Canillas Signed-off-by: Olof Johansson --- diff --git a/drivers/platform/chrome/cros_ec_lightbar.c b/drivers/platform/chrome/cros_ec_lightbar.c index 35fc892e4c95..b4ff47a9069a 100644 --- a/drivers/platform/chrome/cros_ec_lightbar.c +++ b/drivers/platform/chrome/cros_ec_lightbar.c @@ -251,7 +251,7 @@ static ssize_t led_rgb_store(struct device *dev, struct device_attribute *attr, return (ok && i == 0) ? count : -EINVAL; } -static const char const *seqname[] = { +static char const *seqname[] = { "ERROR", "S5", "S3", "S0", "S5S3", "S3S0", "S0S3", "S3S5", "STOP", "RUN", "PULSE", "TEST", "KONAMI", };