mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-04 12:16:41 +00:00
ASoC: rockchip: Fix Wvoid-pointer-to-enum-cast warning
'version' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: rockchip_pdm.c:587:18: error: cast to smaller integer type 'enum rk_pdm_version' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20230815143204.379708-3-krzysztof.kozlowski@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
5a18033249
commit
49a4a8d126
@ -584,7 +584,7 @@ static int rockchip_pdm_probe(struct platform_device *pdev)
|
||||
|
||||
match = of_match_device(rockchip_pdm_match, &pdev->dev);
|
||||
if (match)
|
||||
pdm->version = (enum rk_pdm_version)match->data;
|
||||
pdm->version = (uintptr_t)match->data;
|
||||
|
||||
if (pdm->version == RK_PDM_RK3308) {
|
||||
pdm->reset = devm_reset_control_get(&pdev->dev, "pdm-m");
|
||||
|
Loading…
Reference in New Issue
Block a user