thermal: Use of_property_present() for testing DT property presence
authorRob Herring <robh@kernel.org>
Fri, 10 Mar 2023 14:47:26 +0000 (08:47 -0600)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 30 Mar 2023 17:26:44 +0000 (19:26 +0200)
commit86df7d19083c66fb1e2e1b3800f29586429a4d92
tree64f52b56259e35e98a2eb9d2e6f7adc7db23b8a3
parentd9dc06009b35dd2942561bf5c939a1c91bb5d9e4
thermal: 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: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/cpufreq_cooling.c
drivers/thermal/imx8mm_thermal.c
drivers/thermal/imx_thermal.c
drivers/thermal/ti-soc-thermal/ti-thermal-common.c