]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: tlv320adc3xxx: Fix buggy return value
authorRicard Wanderlof <ricardw@axis.com>
Thu, 24 Feb 2022 09:29:05 +0000 (10:29 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 24 Feb 2022 13:52:34 +0000 (13:52 +0000)
commit3e5671c9af57372b25915c6fc3ad47fdbd9af4bb
treed26783a8d8142e80df8b9fea0b699b4f7d8b9cd7
parent416e06a724555cfac487ce1985772e3388c5da5f
ASoC: tlv320adc3xxx: Fix buggy return value

snd_soc_component_update_bits returns 1 if the operation was
successful and some bits were changed, so we cannot
return this value directly as it can be interpreted
as an error. Instead, do some minor mangling to avoid
inadvertently returning an error.

Signed-off-by: Ricard Wanderlof <ricardw@axis.com>
Link: https://lore.kernel.org/r/alpine.DEB.2.21.2202241021420.20760@lnxricardw1.se.axis.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tlv320adc3xxx.c