]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: codecs: wcd938x: Unify define used for MIC2 bias register
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 23 May 2024 10:42:26 +0000 (12:42 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 27 May 2024 00:31:11 +0000 (01:31 +0100)
commit40b2ffaf594cdf9e4a86d4f28b392e58b9dafafd
tree226e7f2ef0992a7e79bf8c8e9f2e15ddffe627ad
parentf20847d92caa51c31556a64f0849903c55ed38c1
ASoC: codecs: wcd938x: Unify define used for MIC2 bias register

There is a define for MIC bias registers enable mask called
WCD938X_MICB_EN_MASK, which is already used to handle all four MIC1-4
biases in wcd938x_mbhc_micb_adjust_voltage().

Use the same define also in wcd938x_mbhc_micb_en_status() for MIC2 to
have unified, simpler approach.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://msgid.link/r/20240523104228.36263-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wcd938x.c
sound/soc/codecs/wcd938x.h