Skip to content
Snippets Groups Projects
Commit 493cdec7 authored by Przemyslaw Marczak's avatar Przemyslaw Marczak Committed by Simon Glass
Browse files

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: default avatarPrzemyslaw Marczak <p.marczak@samsung.com>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
Tested on sandbox:
Tested-by: default avatarSimon Glass <sjg@chromium.org>
parent 3b880757
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment