Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ed37f851 authored by David Collins's avatar David Collins
Browse files

regulator: cpr-regulator: fix of_property_read_bool() usage



The function of_property_read_bool() is used in several places
in the cpr-regulator driver to test for the existence of
non-boolean device tree properties.  These calls will work as
expected; however, of_property_read_bool() is only meant to be
used for reading boolean device tree properties.

Replace all usages of of_property_read_bool() which test for
non-boolean property existence with of_find_property().

Change-Id: Icafaa209443d9fd24b5bbbc023c1fb70f9928249
Signed-off-by: default avatarDavid Collins <collinsd@codeaurora.org>
parent 7dd146b7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment