dmaengine: mmp: fix Wvoid-pointer-to-enum-cast warning
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 10 Aug 2023 10:00:00 +0000 (12:00 +0200)
committerVinod Koul <vkoul@kernel.org>
Wed, 4 Oct 2023 13:54:57 +0000 (19:24 +0530)
commit094f9ee5fb547c31486801a017a07d7f1c1e7881
treef51d79e375325550eee6ed889150770e9d6f9926
parent9a2136b60cc1a5ba9c5878f08a41f41271c4cd17
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>
drivers/dma/mmp_tdma.c