summaryrefslogtreecommitdiff
path: root/drivers/dma/mmp_tdma.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2023-08-10 13:00:00 +0300
committerVinod Koul <vkoul@kernel.org>2023-10-04 16:54:57 +0300
commit094f9ee5fb547c31486801a017a07d7f1c1e7881 (patch)
treef51d79e375325550eee6ed889150770e9d6f9926 /drivers/dma/mmp_tdma.c
parent9a2136b60cc1a5ba9c5878f08a41f41271c4cd17 (diff)
downloadlinux-094f9ee5fb547c31486801a017a07d7f1c1e7881.tar.xz
dmaengine: mmp: fix Wvoid-pointer-to-enum-cast warning
'type' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: mmp_tdma.c:649:10: error: cast to smaller integer type 'enum mmp_tdma_type' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20230810100000.123515-2-krzysztof.kozlowski@linaro.org Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/mmp_tdma.c')
-rw-r--r--drivers/dma/mmp_tdma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/mmp_tdma.c b/drivers/dma/mmp_tdma.c
index f039e07181f7..fbde35688121 100644
--- a/drivers/dma/mmp_tdma.c
+++ b/drivers/dma/mmp_tdma.c
@@ -644,7 +644,7 @@ static int mmp_tdma_probe(struct platform_device *pdev)
of_id = of_match_device(mmp_tdma_dt_ids, &pdev->dev);
if (of_id)
- type = (enum mmp_tdma_type) of_id->data;
+ type = (uintptr_t) of_id->data;
else
type = platform_get_device_id(pdev)->driver_data;