Skip to content

Commit

Permalink
ASoC: imx-audmux: Silence a clang warning
Browse files Browse the repository at this point in the history
[ Upstream commit 2f4a817 ]

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: 6a8b8b5 ("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>
  • Loading branch information
fabioestevam authored and gregkh committed Aug 17, 2022
1 parent d69244d commit 349242e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/fsl/imx-audmux.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 349242e

Please sign in to comment.