platform/chrome: Constify static attribute_group structs
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Sat, 9 Jan 2021 00:17:48 +0000 (01:17 +0100)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Wed, 20 Jan 2021 15:19:17 +0000 (16:19 +0100)
commitd7c1fef7fdc769ee45771059da823c8840590472
tree22fff0c6cedddd14d8f3cef44868902193e51bbf
parent852405d8efcbca0e02f14592fb1d1dcd0d3fb508
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
drivers/platform/chrome/cros_ec_lightbar.c
drivers/platform/chrome/cros_ec_sysfs.c
drivers/platform/chrome/cros_ec_vbc.c
drivers/platform/chrome/wilco_ec/sysfs.c