memory: tegra: Constify struct thermal_cooling_device_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Sun, 28 Nov 2021 20:41:58 +0000 (21:41 +0100)
committerKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Mon, 29 Nov 2021 09:10:33 +0000 (10:10 +0100)
commit56985dc4f437d7a77d4abede73191da20cf11429
treeb95f8eef4caa28f3628f966feb7733cf7e78abee
parent98f1323959b8d717fbb090f22bdcc5ad768c6dc6
memory: tegra: Constify struct thermal_cooling_device_ops

The only usage of tegra210_emc_cd_ops is to pass its address to
devm_thermal_of_cooling_device_register() which is 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/20211128204158.19544-1-rikard.falkeborn@gmail.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
drivers/memory/tegra/tegra210-emc-core.c