]> git.dujemihanovic.xyz Git - u-boot.git/commit
common: cmd pmic: command cleanup
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Wed, 13 May 2015 11:38:28 +0000 (13:38 +0200)
committerSimon Glass <sjg@chromium.org>
Fri, 15 May 2015 01:58:34 +0000 (19:58 -0600)
commit493cdec7ac68b6534f0dff1dd2e0d97c90930630
treedf8b35064e3eb826652cf40baa3ef1059c312a98
parent3b880757abcaf676dd599663e5b79dd26ea97a80
common: cmd pmic: command cleanup

This commit cleanups the use of function: failed().
The new function name is: failure(), and it is used
for print errno and the errno-related message only.

The second change is choosing PMIC device by it's name,
instead of seq number. Thanks to this change, for set
the current device, call of pmic_get() is enough.

Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Acked-by: Simon Glass <sjg@chromium.org>
Tested on sandbox:
Tested-by: Simon Glass <sjg@chromium.org>
common/cmd_pmic.c