]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: imx-audmux: Silence a clang warning
authorFabio Estevam <festevam@gmail.com>
Thu, 26 May 2022 01:05:43 +0000 (22:05 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:41:58 +0000 (14:41 +0200)
commita35b873945ab77a75cc66b28f4bd9e8f6f8d99ab
tree4b4fe8d261c566844c4429f7e37231cdb42fe097
parent19796d52bbeff3530e1b0769391faffb43d9f28c
ASoC: imx-audmux: Silence a clang warning

[ Upstream commit 2f4a8171da06609bb6a063630ed546ee3d93dad7 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/fsl/imx-audmux.c