OSDN Git Service

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>
Thu, 27 Jan 2022 09:41:54 +0000 (10:41 +0100)
commit0123af535b9c090cf05dcf500f9303bae5849691
tree3ff36aae7be4871a0287450a26372350253694c7
parent9ff684342ee7d3ea2755c6e9b60bc43085baa3ad
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