]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: codecs: wcd93xx-sdw: fix of_property_read_bool() warnings
authorJohan Hovold <johan+linaro@kernel.org>
Mon, 10 Feb 2025 13:21:28 +0000 (14:21 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 10 Feb 2025 13:42:11 +0000 (13:42 +0000)
commitc5528214c7c0a753c908a7b353309ba665985fb4
treed856cada6e04331b75e689fe8638b220697a2dd0
parente97d06cb4386af4e069a2dc713de70500538d0bd
ASoC: codecs: wcd93xx-sdw: fix of_property_read_bool() warnings

Using of_property_read_bool() for non-boolean properties has been
deprecated in favour of of_property_present() and since commit
c141ecc3cecd ("of: Warn when of_property_read_bool() is used on
non-boolean properties") this also generates a warning:

OF: /soc@0/soundwire@3330000/wcd9380-tx@0,3: Read of boolean property 'qcom,tx-port-mapping' with a value.

Switch to using of_property_present() to look for "qcom,tx-port-mapping"
properties.

Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://patch.msgid.link/20250210132128.7734-1-johan+linaro@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wcd937x-sdw.c
sound/soc/codecs/wcd938x-sdw.c
sound/soc/codecs/wcd939x-sdw.c