]> Git Repo - J-linux.git/commitdiff
misc: atmel-ssc: Use of_property_present() for non-boolean properties
authorRob Herring (Arm) <[email protected]>
Mon, 4 Nov 2024 19:06:59 +0000 (13:06 -0600)
committerGreg Kroah-Hartman <[email protected]>
Thu, 7 Nov 2024 08:54:01 +0000 (09:54 +0100)
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) <[email protected]>
Reviewed-by: Hari Prasath Gujulan Elango <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/misc/atmel-ssc.c

index 6eac0f33591524f9b76ad912a3ceb1c62556fc48..1d0322dfaf795f542763147cef95c403b5f7fd7a 100644 (file)
@@ -153,7 +153,7 @@ static int ssc_sound_dai_probe(struct ssc_device *ssc)
 
        ssc->sound_dai = false;
 
-       if (!of_property_read_bool(np, "#sound-dai-cells"))
+       if (!of_property_present(np, "#sound-dai-cells"))
                return 0;
 
        id = of_alias_get_id(np, "ssc");
@@ -176,7 +176,7 @@ static void ssc_sound_dai_remove(struct ssc_device *ssc)
 #else
 static inline int ssc_sound_dai_probe(struct ssc_device *ssc)
 {
-       if (of_property_read_bool(ssc->pdev->dev.of_node, "#sound-dai-cells"))
+       if (of_property_present(ssc->pdev->dev.of_node, "#sound-dai-cells"))
                return -ENOTSUPP;
 
        return 0;
This page took 0.04948 seconds and 4 git commands to generate.