firmware: Use of_property_present() for testing DT property presence
authorRob Herring <robh@kernel.org>
Fri, 10 Mar 2023 14:47:04 +0000 (08:47 -0600)
committerThierry Reding <treding@nvidia.com>
Tue, 4 Apr 2023 19:51:23 +0000 (21:51 +0200)
commit8c47b8253f4cfd8b4dbda8c9adc1d0b1d7f3009d
tree79a92aaaf9acdd141f71275fb25b88507a253d43
parent60b3a99a3b50c94814b84795e38e2161767ea277
firmware: Use of_property_present() for testing DT property presence

It is preferred to use typed property access functions (i.e.
of_property_read_<type> functions) rather than low-level
of_get_property/of_find_property functions for reading properties. As
part of this, convert of_get_property/of_find_property calls to the
recently added of_property_present() helper when we just want to test
for presence of a property and nothing more.

Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/firmware/arm_scmi/optee.c
drivers/firmware/tegra/bpmp.c