2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-24 21:24:00 +08:00

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>
This commit is contained in:
Rikard Falkeborn 2021-01-13 21:32:42 +01:00 committed by Sebastian Reichel
parent cd900f181a
commit 249aacc6a3

View File

@ -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,
};