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

Simon Glass sjg at chromium.org
Sun May 10 15:56:54 CEST 2015


On 8 May 2015 at 10:20, Przemyslaw Marczak <p.marczak at 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 at samsung.com>
> ---
>  common/cmd_regulator.c | 239 +++++++++++++++++++++++++------------------------
>  1 file changed, 122 insertions(+), 117 deletions(-)

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


More information about the U-Boot mailing list