diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2024-06-25 18:57:36 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-06-26 17:34:55 +0200 |
commit | 06462d6f3fb3c445b5abac7b134d9fe9e361113f (patch) | |
tree | a1499e80ae7d0134cb6e50648603b5a3a483d9de /sound/soc/qcom/lpass-cpu.c | |
parent | ASoC: codecs: lpass-macro: Gracefully handle unknown version (diff) | |
download | linux-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