mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
ASoC: imx-audmux: Silence a clang warning
[ Upstream commit2f4a8171da
] 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:6a8b8b582d
("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>
This commit is contained in:
parent
19796d52bb
commit
a35b873945
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue