ASoC: Use of_property_present() for testing DT property presence
authorRob Herring <robh@kernel.org>
Fri, 10 Mar 2023 14:47:31 +0000 (08:47 -0600)
committerMark Brown <broonie@kernel.org>
Sat, 11 Mar 2023 12:18:54 +0000 (12:18 +0000)
commit1e108e60a44a924e3666fa2a10b53f6c31522856
tree6dc8938b5b7f0f678ea0a9ba0974341b45eceb5c
parent75034eb5e4c267d4ab93085b5d6fa3dab2535b34
ASoC: Use of_property_present() for testing DT property presence

It is preferred to use typed property access functions (i.e.
of_property_read_<type> functions) rather than low-level
of_get_property/of_find_property functions for reading properties. As
part of this, convert of_get_property/of_find_property calls to the
recently added of_property_present() helper when we just want to test
for presence of a property and nothing more.

Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20230310144732.1546328-1-robh@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/lpass-macro-common.c
sound/soc/generic/audio-graph-card.c
sound/soc/generic/audio-graph-card2.c
sound/soc/mxs/mxs-sgtl5000.c
sound/soc/samsung/i2s.c
sound/soc/sh/fsi.c
sound/soc/stm/stm32_i2s.c
sound/soc/stm/stm32_sai_sub.c
sound/soc/tegra/tegra_asoc_machine.c