twx-linux/sound
Geert Uytterhoeven 85484bc611 ASoC: soc-core: Stop using of_property_read_bool() for non-boolean properties
commit 6eab7034579917f207ca6d8e3f4e11e85e0ab7d5 upstream.

On R-Car:

    OF: /sound: Read of boolean property 'simple-audio-card,bitclock-master' with a value.
    OF: /sound: Read of boolean property 'simple-audio-card,frame-master' with a value.

or:

    OF: /soc/sound@ec500000/ports/port@0/endpoint: Read of boolean property 'bitclock-master' with a value.
    OF: /soc/sound@ec500000/ports/port@0/endpoint: Read of boolean property 'frame-master' with a value.

The use of of_property_read_bool() for non-boolean properties is
deprecated in favor of of_property_present() when testing for property
presence.

Replace testing for presence before calling of_property_read_u32() by
testing for an -EINVAL return value from the latter, to simplify the
code.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/db10e96fbda121e7456d70e97a013cbfc9755f4d.1737533954.git.geert+renesas@glider.be
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-05-09 09:44:03 +02:00
..
ac97
aoa
arm
atmel
core ALSA: seq: Avoid module auto-load handling at event delivery 2025-03-13 12:58:24 +01:00
drivers
firewire ALSA: firewire-lib: fix return value on fail in amdtp_tscm_init() 2024-11-14 13:19:33 +01:00
hda ASoC: Intel: sst: Support LPE0F28 ACPI HID 2024-12-09 10:31:36 +01:00
i2c
isa ALSA: gus: Fix some error handling paths related to get_bpos() usage 2024-10-10 11:57:20 +02:00
mips
oss
parisc
pci ALSA: hda/realtek: Fix built-in mic on another ASUS VivoBook model 2025-04-25 10:45:59 +02:00
pcmcia
ppc
sh ALSA: sh: Fix wrong argument order for copy_from_iter() 2025-01-02 10:32:11 +01:00
soc ASoC: soc-core: Stop using of_property_read_bool() for non-boolean properties 2025-05-09 09:44:03 +02:00
sparc
spi
synth ALSA: emux: improve patch ioctl data validation 2024-07-05 09:33:52 +02:00
usb ALSA: usb-audio: Add second USB ID for Jabra Evolve 65 headset 2025-05-09 09:43:49 +02:00
virtio sound/virtio: Fix cancel_sync warnings on uninitialized work_structs 2025-05-02 07:50:54 +02:00
x86
xen
ac97_bus.c
Kconfig sound: Make CONFIG_SND depend on INDIRECT_IOMEM instead of UML 2024-11-17 15:08:56 +01:00
last.c
Makefile
sound_core.c