cpufreq: Use of_property_present() for testing DT property presence
authorRob Herring <robh@kernel.org>
Fri, 10 Mar 2023 14:47:02 +0000 (08:47 -0600)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 13 Mar 2023 04:28:11 +0000 (09:58 +0530)
commitb8f3a396a7ee43e6079176cc0fb8de2b95a23681
tree1de7073712435bbb6ee7aa5db6ab1fbc06960214
parent35527c677cb6bbaa6489b8560c8b4316fdd60792
cpufreq: 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>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/cpufreq-dt-platdev.c
drivers/cpufreq/imx-cpufreq-dt.c
drivers/cpufreq/imx6q-cpufreq.c
drivers/cpufreq/scmi-cpufreq.c
drivers/cpufreq/tegra20-cpufreq.c