Re: [PATCH] platform/chrome: Constify static attribute_group structs

2021-01-20 Thread Enric Balletbo i Serra
On Sat, 9 Jan 2021 01:17:48 +0100, Rikard Falkeborn wrote: > The only usage of these is to print their name in a dev_err-message, and > to pass their address to sysfs_create_group() and sysfs_remove_group(), > both which takes pointers to const. Make them const to allow the compiler > to put them i

[PATCH] platform/chrome: Constify static attribute_group structs

2021-01-08 Thread Rikard Falkeborn
The only usage of these is to print their name in a dev_err-message, and to pass their address to sysfs_create_group() and sysfs_remove_group(), both which takes pointers to const. Make them const to allow the compiler to put them in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/