thermal: core: Constify static attribute_group structs
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Sat, 28 Nov 2020 23:43:42 +0000 (00:43 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 30 Nov 2020 08:09:12 +0000 (09:09 +0100)
commitf74bed6a4e0d7f51da7f624e47f6e9423920e1e0
tree7bb7c5d99cf05f76016c01b7d9c959508965320a
parent90a996544946d1d4834ec2ec8add586edd905779
thermal: core: Constify static attribute_group structs

The only usage of these structs is to assign their address to the
thermal_zone_attribute_groups array, which consists of pointers to
const, so 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: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20201128234342.36684-1-rikard.falkeborn@gmail.com
drivers/thermal/thermal_sysfs.c