]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
regulator: Use of_property_present() for testing DT property presence
authorRob Herring <robh@kernel.org>
Fri, 10 Mar 2023 14:47:21 +0000 (08:47 -0600)
committerMark Brown <broonie@kernel.org>
Sat, 11 Mar 2023 12:13:38 +0000 (12:13 +0000)
commit7dda20c97fac52948b948e15e1173ee57c66ed35
tree79d21149869276b9fa9eb85ca83ae5fe1264894c
parent4eb6678ab53cac74e71fc5d4e6ff4035e5c847b6
regulator: 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>
Link: https://lore.kernel.org/r/20230310144721.1544756-1-robh@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/bd71815-regulator.c
drivers/regulator/fixed.c
drivers/regulator/gpio-regulator.c
drivers/regulator/pwm-regulator.c