regulator: Use of_property_read_bool() for boolean properties
authorRob Herring <robh@kernel.org>
Fri, 10 Mar 2023 14:47:22 +0000 (08:47 -0600)
committerMark Brown <broonie@kernel.org>
Sat, 11 Mar 2023 12:13:42 +0000 (12:13 +0000)
commit5bd73a162bc881dbb98ff9909dd865286852ee2b
tree75c47e308b8be46a7a2f2454b6c3b8441894956c
parent7dda20c97fac52948b948e15e1173ee57c66ed35
regulator: Use of_property_read_bool() for boolean properties

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.
Convert reading boolean properties to to of_property_read_bool().

Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20230310144722.1544843-1-robh@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/lp872x.c
drivers/regulator/max8997-regulator.c
drivers/regulator/max8998.c
drivers/regulator/s5m8767.c
drivers/regulator/stpmic1_regulator.c
drivers/regulator/tps62360-regulator.c
drivers/regulator/twl6030-regulator.c