Commit 249aacc6 authored by Rikard Falkeborn's avatar Rikard Falkeborn Committed by Sebastian Reichel

power: supply: ltc4162-l: Constify static struct attribute_group

The only usage of it is to put its address in an array of pointers to
const static structs. Make it const to allow the compiler to put it in
read-only memory.
Signed-off-by: default avatarRikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent cd900f18
......@@ -666,7 +666,7 @@ static struct attribute *ltc4162l_sysfs_entries[] = {
NULL,
};
static struct attribute_group ltc4162l_attr_group = {
static const struct attribute_group ltc4162l_attr_group = {
.name = NULL, /* put in device directory */
.attrs = ltc4162l_sysfs_entries,
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment