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>

authored by Chancel Liu and committed by Mark Brown fa43ab13 d05d125f

+4 -4
+4 -4
sound/soc/fsl/fsl-asoc-card.c
··· 1045 1045 * The notifier is initialized in snd_soc_card_jack_new(), then 1046 1046 * snd_soc_jack_notifier_register can be called. 1047 1047 */ 1048 - if (of_property_read_bool(np, "hp-det-gpios") || 1049 - of_property_read_bool(np, "hp-det-gpio") /* deprecated */) { 1048 + if (of_property_present(np, "hp-det-gpios") || 1049 + of_property_present(np, "hp-det-gpio") /* deprecated */) { 1050 1050 ret = simple_util_init_jack(&priv->card, &priv->hp_jack, 1051 1051 1, NULL, "Headphone Jack"); 1052 1052 if (ret) ··· 1055 1055 snd_soc_jack_notifier_register(&priv->hp_jack.jack, &hp_jack_nb); 1056 1056 } 1057 1057 1058 - if (of_property_read_bool(np, "mic-det-gpios") || 1059 - of_property_read_bool(np, "mic-det-gpio") /* deprecated */) { 1058 + if (of_property_present(np, "mic-det-gpios") || 1059 + of_property_present(np, "mic-det-gpio") /* deprecated */) { 1060 1060 ret = simple_util_init_jack(&priv->card, &priv->mic_jack, 1061 1061 0, NULL, "Mic Jack"); 1062 1062 if (ret)