]> git.baikalelectronics.ru Git - kernel.git/commit
thermal/drivers/thermal_mmio: Constify static struct thermal_mmio_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Mon, 20 Sep 2021 20:38:49 +0000 (22:38 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 7 Oct 2021 13:18:31 +0000 (15:18 +0200)
commit92c468525352b6f9cc5556af77d55f16358bf4f7
treee9b24dd6d983383417f1f88ffc8c3159f2b611ae
parent62d0c3c91d43890e76d06eab873e9ff46a58308c
thermal/drivers/thermal_mmio: Constify static struct thermal_mmio_ops

The only usage of thermal_mmio_ops is to pass its address to
devm_thermal_zone_of_sensor_register(), which has a pointer to const
struct thermal_zone_of_device_ops as argument. Make it const to allow
the compiler to put it in read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Acked-by: Talel Shenhar <talel@amazon.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210920203849.32136-1-rikard.falkeborn@gmail.com
drivers/thermal/thermal_mmio.c