]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
regulator: Use of_property_read_bool()
authorRob Herring (Arm) <robh@kernel.org>
Wed, 31 Jul 2024 19:13:02 +0000 (13:13 -0600)
committerMark Brown <broonie@kernel.org>
Thu, 1 Aug 2024 11:50:11 +0000 (12:50 +0100)
commitb03695d95213121719f05cbf6f3baa1ad3667e7f
treeeda5e1fcfd7315122e74caf06a5b66adc0c24ecf
parentcd7d47c5762997a2b1de57a47cd48a1cdad38d96
regulator: Use of_property_read_bool()

Use of_property_read_bool() to read boolean properties rather than
of_get_property(). This is part of a larger effort to remove callers
of of_get_property() and similar functions. of_get_property() leaks
the DT property data pointer which is a problem for dynamically
allocated nodes which may be freed.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://patch.msgid.link/20240731191312.1710417-24-robh@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/act8865-regulator.c
drivers/regulator/max8997-regulator.c