Commit Graph

2 Commits

Author SHA1 Message Date
David Collins 589cf93950 regulator: proxy-consumer: fix of_property_read_bool() usage
The function of_property_read_bool() is used in the
proxy-consumer driver to test for the existence of non-boolean
device tree properties qcom,proxy-consumer-voltage and
qcom,proxy-consumer-current.  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: I83a718d05f5495f514d6a70004fcb5a2780d45c0
Signed-off-by: David Collins <collinsd@codeaurora.org>
2014-08-04 17:22:36 -07:00
David Collins 102da938db regulator: Add proxy consumer driver
Add a proxy consumer driver which can be used to ensure that a
given regulator maintains a certain minimum state during bootup.
Enable state, voltage, and current may be forced to specified
levels.

Change-Id: I0ccc63a41684462684ac737fb2f4129a3e6e4aea
Signed-off-by: David Collins <collinsd@codeaurora.org>
2013-08-22 18:09:07 -07:00