summaryrefslogtreecommitdiffstats
path: root/sound/soc/qcom/lpass-cpu.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2024-06-25 18:57:36 +0200
committerMark Brown <broonie@kernel.org>2024-06-26 17:34:55 +0200
commit06462d6f3fb3c445b5abac7b134d9fe9e361113f (patch)
treea1499e80ae7d0134cb6e50648603b5a3a483d9de /sound/soc/qcom/lpass-cpu.c
parentASoC: codecs: lpass-macro: Gracefully handle unknown version (diff)
downloadlinux-06462d6f3fb3c445b5abac7b134d9fe9e361113f.tar.xz
linux-06462d6f3fb3c445b5abac7b134d9fe9e361113f.zip
ASoC: codecs: lpass-macro: Use enum for handling codec version
Replace 'int' with proper 'enum lpass_codec_version' in every place which handles the parsed codec version (not raw register values!) to be explicit about contents of the variable. This makes code easier to read and compilers could check missing switch cases. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Link: https://patch.msgid.link/20240625165736.722106-2-krzysztof.kozlowski@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/qcom/lpass-cpu.c')
0 files changed, 0 insertions, 0 deletions