summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-21 14:43:12 +0300
committerSebastian Reichel <sebastian.reichel@collabora.co.uk>2017-08-28 19:48:44 +0300
commitc023b90699c820452093e7f24fb9058900971fda (patch)
treea026e5d0cd989c57eb589f1a901908b6c529d5a1 /drivers/power
parenta865a155568fcfbc51cf16ad150834e1443b5d2a (diff)
downloadlinux-c023b90699c820452093e7f24fb9058900971fda.tar.xz
power: supply: make device_attribute const
Make these const as they are only passed as an argument to the function device_create_file and device_remove_file and the corresponding arguments are of type const. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/supply/olpc_battery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/olpc_battery.c b/drivers/power/supply/olpc_battery.c
index fc20ca368e55..3bc2eea7b3b7 100644
--- a/drivers/power/supply/olpc_battery.c
+++ b/drivers/power/supply/olpc_battery.c
@@ -559,7 +559,7 @@ static ssize_t olpc_bat_error_read(struct device *dev,
return sprintf(buf, "%d\n", ec_byte);
}
-static struct device_attribute olpc_bat_error = {
+static const struct device_attribute olpc_bat_error = {
.attr = {
.name = "error",
.mode = S_IRUGO,