thermal/drivers/samsung: Fix Wvoid-pointer-to-enum-cast warning
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 10 Aug 2023 09:13:18 +0000 (11:13 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 16 Aug 2023 10:11:19 +0000 (12:11 +0200)
commit1892f9f01cd0cf163d2a2ee182d60d61e9d95be0
tree626234e6d21b3e63bed5e08e8d0a4754ea03e63d
parentc39300c47d9195928fc1145f789fb0f36e471779
thermal/drivers/samsung: Fix Wvoid-pointer-to-enum-cast warning

'soc' is an enum, thus cast of pointer on 64-bit compile test with W=1
causes:

  exynos_tmu.c:890:14: error: cast to smaller integer type 'enum soc_type' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20230810091318.70261-1-krzysztof.kozlowski@linaro.org
drivers/thermal/samsung/exynos_tmu.c