thermal/drivers/intel_powerclamp: Constify static thermal_cooling_device_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Sun, 28 Nov 2021 21:46:41 +0000 (22:46 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 30 Nov 2021 14:42:39 +0000 (15:42 +0100)
commit8152d2a9e73deb2b483bef9035d53ded27f50317
treeb650d37e91d73dff6e37baef70abd9c4974d619d
parent4cf2ddf16e175ee18c5c29865c32da7d6269cf44
thermal/drivers/intel_powerclamp: Constify static thermal_cooling_device_ops

The only usage of powerclamp_cooling_ops is to pass its address to
thermal_cooling_device_register(), which takes a pointer to const struct
thermal_cooling_device_ops. Make it const to allow the compiler to put
it in read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20211128214641.30953-1-rikard.falkeborn@gmail.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/intel/intel_powerclamp.c