[PATCH 2/3] power: wm831x_power.c: fixed const struct declaration warning

From: Sangho Yi
Date: Wed Oct 17 2012 - 11:02:40 EST


I fixed the following coding style violation;
WARNING: static const char * array should probably be static const char
* const

Signed-off-by: Sangho Yi <antiroot@xxxxxxxxx>
---
drivers/power/wm831x_power.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/power/wm831x_power.c b/drivers/power/wm831x_power.c
index 833841b..1afca43 100644
--- a/drivers/power/wm831x_power.c
+++ b/drivers/power/wm831x_power.c
@@ -430,7 +430,7 @@ static enum power_supply_property wm831x_bat_props[] = {
POWER_SUPPLY_PROP_CHARGE_TYPE,
};

-static const char *wm831x_bat_irqs[] = {
+static const char * const wm831x_bat_irqs[] = {
"BATT HOT",
"BATT COLD",
"BATT FAIL",
--
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/