Searched hist:"52557 dc624df7de5808c5c26476f3a8863bb0128" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/mfd/ |
H A D | ab8500-core.c | diff 52557dc624df7de5808c5c26476f3a8863bb0128 Mon Jul 10 00:37:22 CDT 2017 Arvind Yadav <arvind.yadav.cs@gmail.com> mfd: ab8500-core: Constify attribute_group structures
attribute_groups are not supposed to change at runtime. All functions working with attribute_groups provided by <linux/sysfs.h> work with const attribute_group. So mark the non-const structs as const.
File size before: text data bss dec hex filename 16298 1009 184 17491 4453 drivers/mfd/ab8500-core.o
File size After adding 'const': text data bss dec hex filename 16490 817 184 17491 4453 drivers/mfd/ab8500-core.o
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
|