power: supply: core: Constify static struct attribute_group
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Wed, 13 Jan 2021 20:32:43 +0000 (21:32 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 13 Jan 2021 21:11:44 +0000 (22:11 +0100)
commit2f7cf24f420522ddf7575d76753007407293ecc0
tree9fc459d4359d932cd626f18c1394b0780065663a
parent249aacc6a30f8e957394a2781a8a40150ecbc04f
power: supply: core: 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>
drivers/power/supply/power_supply_sysfs.c