diff options
author | Fabio Estevam <festevam@gmail.com> | 2022-05-25 22:05:43 -0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-06-06 12:38:29 +0100 |
commit | 2f4a8171da06609bb6a063630ed546ee3d93dad7 (patch) | |
tree | 74514a8d0843cdebf0f707ee0ef96cd70d604c20 /sound/soc/fsl/imx-audmux.c | |
parent | 8466579b63cc9aa957b7b4f273087512f989d2a1 (diff) | |
download | linux-2f4a8171da06609bb6a063630ed546ee3d93dad7.tar.bz2 |
ASoC: imx-audmux: Silence a clang warning
Change the of_device_get_match_data() cast to (uintptr_t)
to silence the following clang warning:
sound/soc/fsl/imx-audmux.c:301:16: warning: cast to smaller integer type 'enum imx_audmux_type' from 'const void *' [-Wvoid-pointer-to-enum-cast]
Reported-by: kernel test robot <lkp@intel.com>
Fixes: 6a8b8b582db1 ("ASoC: imx-audmux: Remove unused .id_table")
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Link: https://lore.kernel.org/r/20220526010543.1164793-1-festevam@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/fsl/imx-audmux.c')
-rw-r--r-- | sound/soc/fsl/imx-audmux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/imx-audmux.c b/sound/soc/fsl/imx-audmux.c index dfa05d40b276..a8e5e0f57faf 100644 --- a/sound/soc/fsl/imx-audmux.c +++ b/sound/soc/fsl/imx-audmux.c @@ -298,7 +298,7 @@ static int imx_audmux_probe(struct platform_device *pdev) audmux_clk = NULL; } - audmux_type = (enum imx_audmux_type)of_device_get_match_data(&pdev->dev); + audmux_type = (uintptr_t)of_device_get_match_data(&pdev->dev); switch (audmux_type) { case IMX31_AUDMUX: |