Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c023b906 authored by Bhumika Goyal's avatar Bhumika Goyal Committed by Sebastian Reichel
Browse files

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: default avatarBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
parent a865a155
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,