summaryrefslogtreecommitdiffstats
path: root/drivers/of/property.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-02-09 00:13:23 +0100
committerRob Herring <robh@kernel.org>2023-02-17 22:46:20 +0100
commit16b0c7cad99e96b002e26f016f28150cc7c52514 (patch)
tree0b3c3b90787ed4338d46b039170be1939b505107 /drivers/of/property.c
parentof: Use of_property_present() helper (diff)
downloadlinux-16b0c7cad99e96b002e26f016f28150cc7c52514.tar.xz
linux-16b0c7cad99e96b002e26f016f28150cc7c52514.zip
of: Use preferred of_property_read_* functions
Replace instances of of_get_property/of_find_property() with appropriate typed of_property_read_*() functions. Link: https://lore.kernel.org/all/20230215215502.690716-1-robh@kernel.org/ Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of/property.c')
-rw-r--r--drivers/of/property.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/property.c b/drivers/of/property.c
index ff71d2ac26cb..a229536f7564 100644
--- a/drivers/of/property.c
+++ b/drivers/of/property.c
@@ -1358,7 +1358,7 @@ static struct device_node *parse_gpio_compat(struct device_node *np,
* Ignore node with gpio-hog property since its gpios are all provided
* by its parent.
*/
- if (of_find_property(np, "gpio-hog", NULL))
+ if (of_property_read_bool(np, "gpio-hog"))
return NULL;
if (of_parse_phandle_with_args(np, prop_name, "#gpio-cells", index,