summaryrefslogtreecommitdiffstats
path: root/drivers/power/supply/wm8350_power.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/power/supply/wm8350_power.c')
-rw-r--r--drivers/power/supply/wm8350_power.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/wm8350_power.c b/drivers/power/supply/wm8350_power.c
index 5c5880664e09..a2740cf57ad3 100644
--- a/drivers/power/supply/wm8350_power.c
+++ b/drivers/power/supply/wm8350_power.c
@@ -182,7 +182,7 @@ static ssize_t charger_state_show(struct device *dev,
return sprintf(buf, "%s\n", charge);
}
-static DEVICE_ATTR(charger_state, 0444, charger_state_show, NULL);
+static DEVICE_ATTR_RO(charger_state);
static irqreturn_t wm8350_charger_handler(int irq, void *data)
{