Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

misc: atmel-ssc: 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.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Hari Prasath Gujulan Elango <hari.prasathge@microchip.com>
Link: https://lore.kernel.org/r/20241104190700.275573-1-robh@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Rob Herring (Arm) and committed by
Greg Kroah-Hartman
65294beb 9b50fe11

+2 -2
+2 -2
drivers/misc/atmel-ssc.c
··· 153 153 154 154 ssc->sound_dai = false; 155 155 156 - if (!of_property_read_bool(np, "#sound-dai-cells")) 156 + if (!of_property_present(np, "#sound-dai-cells")) 157 157 return 0; 158 158 159 159 id = of_alias_get_id(np, "ssc"); ··· 176 176 #else 177 177 static inline int ssc_sound_dai_probe(struct ssc_device *ssc) 178 178 { 179 - if (of_property_read_bool(ssc->pdev->dev.of_node, "#sound-dai-cells")) 179 + if (of_property_present(ssc->pdev->dev.of_node, "#sound-dai-cells")) 180 180 return -ENOTSUPP; 181 181 182 182 return 0;