summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorRikard Falkeborn <rikard.falkeborn@gmail.com>2021-01-13 23:32:42 +0300
committerSebastian Reichel <sebastian.reichel@collabora.com>2021-01-14 00:11:43 +0300
commit249aacc6a30f8e957394a2781a8a40150ecbc04f (patch)
tree182e43254f5d765130c51a8ae6a281bfef70793e /drivers/power
parentcd900f181ad6b548a8feded5dd224f789f09b1c6 (diff)
downloadlinux-249aacc6a30f8e957394a2781a8a40150ecbc04f.tar.xz
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: Rikard Falkeborn <rikard.falkeborn@gmail.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/supply/ltc4162-l-charger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/ltc4162-l-charger.c b/drivers/power/supply/ltc4162-l-charger.c
index cded6484febb..1a5cb4405ee3 100644
--- a/drivers/power/supply/ltc4162-l-charger.c
+++ b/drivers/power/supply/ltc4162-l-charger.c
@@ -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,
};