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>
Showing
Please register or sign in to comment