of: Add of_property_present() helper
authorRob Herring <robh@kernel.org>
Thu, 9 Feb 2023 21:35:01 +0000 (15:35 -0600)
committerRob Herring <robh@kernel.org>
Fri, 17 Feb 2023 21:21:36 +0000 (15:21 -0600)
commit9cbad37ce8122de32a1529e394b468bc101c9e7f
tree94fc6ca764f8bad678effb864a5a3f5c11d3845b
parent6ee7afbabcee4d54024c46f8fc74314c69a04613
of: Add of_property_present() helper

Add an of_property_present() function similar to
fwnode_property_present(). of_property_read_bool() could be used
directly, but it is cleaner to not use it on non-boolean properties.

Reviewed-by: Frank Rowand <frowand.list@gmail.com>
Tested-by: Frank Rowand <frowand.list@gmail.com>
Link: https://lore.kernel.org/all/20230215215547.691573-1-robh@kernel.org/
Signed-off-by: Rob Herring <robh@kernel.org>
include/linux/of.h