Skip to content

Commit 7dc65e3

Browse files
fabioestevamstorulf
authored andcommitted
mmc: mxcmmc: Silence a clang warning
Change the of_device_get_match_data() cast to (uintptr_t) to silence the following clang warning: drivers/mmc/host/mxcmmc.c:1028:18: warning: cast to smaller integer type 'enum mxcmci_type' from 'const void *' [-Wvoid-pointer-to-enum-cast] Reported-by: kernel test robot <lkp@intel.com> Fixes: 8223e88 ("mmc: mxc: Convert the driver to DT-only") Signed-off-by: Fabio Estevam <festevam@gmail.com> Link: https://lore.kernel.org/r/20220526010022.1163483-1-festevam@gmail.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent b5899a3 commit 7dc65e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/mxcmmc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,7 @@ static int mxcmci_probe(struct platform_device *pdev)
10251025
mmc->max_req_size = mmc->max_blk_size * mmc->max_blk_count;
10261026
mmc->max_seg_size = mmc->max_req_size;
10271027

1028-
host->devtype = (enum mxcmci_type)of_device_get_match_data(&pdev->dev);
1028+
host->devtype = (uintptr_t)of_device_get_match_data(&pdev->dev);
10291029

10301030
/* adjust max_segs after devtype detection */
10311031
if (!is_mpc512x_mmc(host))

0 commit comments

Comments
 (0)