]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: imx-dma: Cast of_device_get_match_data() with (uintptr_t)
authorFabio Estevam <festevam@denx.de>
Wed, 6 Jul 2022 11:13:27 +0000 (08:13 -0300)
committerVinod Koul <vkoul@kernel.org>
Thu, 21 Jul 2022 12:38:35 +0000 (18:08 +0530)
commita1b30fd03697a7fc194e5b7a284a2b437efc2228
tree0c07321b7148b839a5dd9234abe6f50d37c0f449
parent6844b70455f57a5b061cdc26ff02dcf3de567778
dmaengine: imx-dma: Cast of_device_get_match_data() with (uintptr_t)

Change the of_device_get_match_data() cast to (uintptr_t)
to silence the following clang warning:

drivers/dma/imx-dma.c:1048:20: warning: cast to smaller integer type 'enum imx_dma_type' from 'const void *' [-Wvoid-pointer-to-enum-cast]

Reported-by: kernel test robot <lkp@intel.com>
Fixes: a20839b9ba53 ("dmaengine: imx-dma: Remove unused .id_table")
Signed-off-by: Fabio Estevam <festevam@denx.de>
Link: https://lore.kernel.org/r/20220706111327.940764-1-festevam@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/imx-dma.c