]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: fsl-asoc-card: Use of_property_present() for non-boolean properties
authorChancel Liu <chancel.liu@nxp.com>
Tue, 16 Dec 2025 07:16:56 +0000 (16:16 +0900)
committerMark Brown <broonie@kernel.org>
Wed, 17 Dec 2025 12:01:03 +0000 (12:01 +0000)
commitfa43ab13c59f4c047c479673792ed033ab567c65
tree4ea0f41fec89d844e9b842a598f3cc05328c8565
parentd05d125f4e123e23c89d002e9922f83cee7716e1
ASoC: fsl-asoc-card: Use of_property_present() for non-boolean properties

The use of of_property_read_bool() for non-boolean properties is
deprecated in favor of of_property_present() when testing for property
presence.
Otherwise there'll be kernel warning:
[   29.018081] OF: /sound-wm8962: Read of boolean property 'hp-det-gpios' with a value.

Signed-off-by: Chancel Liu <chancel.liu@nxp.com>
Link: https://patch.msgid.link/20251216071656.648412-1-chancel.liu@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl-asoc-card.c