Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Rikard Falkeborn and committed by
Sebastian Reichel
249aacc6 cd900f18

+1 -1
+1 -1
drivers/power/supply/ltc4162-l-charger.c
··· 666 666 NULL, 667 667 }; 668 668 669 - static struct attribute_group ltc4162l_attr_group = { 669 + static const struct attribute_group ltc4162l_attr_group = { 670 670 .name = NULL, /* put in device directory */ 671 671 .attrs = ltc4162l_sysfs_entries, 672 672 };