]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: power: Add regulator flags to centralise auto-set logic
authorSimon Glass <sjg@chromium.org>
Tue, 23 Jun 2015 21:38:57 +0000 (15:38 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 21 Jul 2015 23:39:26 +0000 (17:39 -0600)
commit7837ceab1ef8d4a88fb218bfa6b042b0b865b15f
treef05380c28bf5c0e119553a25482de6aa7d9db485
parent23ec2b570d948519109c284eddd14146c84d1f62
dm: power: Add regulator flags to centralise auto-set logic

Decide when the regulator is set up whether we want to auto-set the voltage
or current. This avoids the complex logic spilling into the processing code.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Przemyslaw Marczak <p.marczak@samsung.com>
Acked-by: Przemyslaw Marczak <p.marczak@samsung.com>
drivers/power/regulator/regulator-uclass.c
include/power/regulator.h