Searched hist:d7c1fef7fdc769ee45771059da823c8840590472 (Results 1 – 4 of 4) sorted by relevance
/linux/drivers/platform/chrome/wilco_ec/ |
H A D | sysfs.c | diff d7c1fef7fdc769ee45771059da823c8840590472 Sat Jan 09 01:17:48 CET 2021 Rikard Falkeborn <rikard.falkeborn@gmail.com> platform/chrome: Constify static attribute_group structs
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 <rikard.falkeborn@gmail.com> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> Link: https://lore.kernel.org/r/20210109001748.58036-1-rikard.falkeborn@gmail.com
|
/linux/drivers/platform/chrome/ |
H A D | cros_ec_vbc.c | diff d7c1fef7fdc769ee45771059da823c8840590472 Sat Jan 09 01:17:48 CET 2021 Rikard Falkeborn <rikard.falkeborn@gmail.com> platform/chrome: Constify static attribute_group structs
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 <rikard.falkeborn@gmail.com> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> Link: https://lore.kernel.org/r/20210109001748.58036-1-rikard.falkeborn@gmail.com
|
H A D | cros_ec_sysfs.c | diff d7c1fef7fdc769ee45771059da823c8840590472 Sat Jan 09 01:17:48 CET 2021 Rikard Falkeborn <rikard.falkeborn@gmail.com> platform/chrome: Constify static attribute_group structs
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 <rikard.falkeborn@gmail.com> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> Link: https://lore.kernel.org/r/20210109001748.58036-1-rikard.falkeborn@gmail.com
|
H A D | cros_ec_lightbar.c | diff d7c1fef7fdc769ee45771059da823c8840590472 Sat Jan 09 01:17:48 CET 2021 Rikard Falkeborn <rikard.falkeborn@gmail.com> platform/chrome: Constify static attribute_group structs
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 <rikard.falkeborn@gmail.com> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> Link: https://lore.kernel.org/r/20210109001748.58036-1-rikard.falkeborn@gmail.com
|