[U-Boot] [PATCH 06/12] common: cmd regulator: command cleanup

Simon Glass
2015-05-10T13:56:54Z

On 8 May 2015 at 10:20, Przemyslaw Marczak <p.marczak@samsung.com> wrote:
> This commit cleanups the regulator command.
> The first change, is adjusting "regulator dev" command to use
> "regulator-name" constraint, for setting the operating device.
> Thanks to this, the regulator_get() function is removed.
>
> This also updates do_list() function, with loop over uclass_find_*
> function calls, to prevent probe of all listed regulators.
>
> This also cleanups the printing in command.
>
> Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
> ---
> common/cmd_regulator.c | 239 +++++++++++++++++++++++++------------------------
> 1 file changed, 122 insertions(+), 117 deletions(-)

Acked-by: Simon Glass <sjg@chromium.org>
Tested on sandbox:
Tested-by: Simon Glass <sjg@chromium.org>