Skip to content

Commit 1892f9f

Browse files
krzkdlezcano
authored andcommitted
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
1 parent c39300c commit 1892f9f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/thermal/samsung/exynos_tmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ static int exynos_map_dt_data(struct platform_device *pdev)
887887
return -EADDRNOTAVAIL;
888888
}
889889

890-
data->soc = (enum soc_type)of_device_get_match_data(&pdev->dev);
890+
data->soc = (uintptr_t)of_device_get_match_data(&pdev->dev);
891891

892892
switch (data->soc) {
893893
case SOC_ARCH_EXYNOS4210:

0 commit comments

Comments
 (0)