ASoC: codecs: tlv320aic32x4: Fix Wvoid-pointer-to-enum-cast warning
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tue, 15 Aug 2023 14:32:02 +0000 (16:32 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 15 Aug 2023 18:22:58 +0000 (19:22 +0100)
commit66de320b0214a60095287ba1afa09e870d8cdbe5
treeca612084e0dc875cd9fcd39838ec6a7e3f40e722
parent7f0315ded4d5543d51346b60c72c0393d8ba9785
ASoC: codecs: tlv320aic32x4: Fix Wvoid-pointer-to-enum-cast warning

'type' is an enum, thus cast of pointer on 64-bit compile test with W=1
causes:

  tlv320aic32x4.c:1352:18: error: cast to smaller integer type 'enum aic32x4_type' from 'void *' [-Werror,-Wvoid-pointer-to-enum-cast]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230815143204.379708-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tlv320aic32x4.c