]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
common: cmd pmic: command cleanup
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Wed, 13 May 2015 11:38:28 +0000 (13:38 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:40:25 +0000 (22:40 +0200)
commit228807b6b10a773689c1c39179cd02782c3572bb
tree4352db5444e7e443e259bde6ca2a94603f6fb6dc
parent8c0d571006ddfdb8c04422615fddb2bdd8209f96
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