aboutsummaryrefslogtreecommitdiff
path: root/cmd/bootmenu.c
diff options
context:
space:
mode:
authorMartin Fuzzey2020-01-14 15:56:18 +0000
committerTom Rini2020-01-27 19:54:20 -0500
commitb852cca8f0d863bd31ae72c5a5f241da73b8745f (patch)
tree8714a55ade4b47f4f80c15003cbfb5f5c50ca178 /cmd/bootmenu.c
parent7ae22d8479c9e832c0a9a18de705553535a1a9f6 (diff)
pmic: allow dump command for non contiguous register maps
Some PMICs (such as the DA9063) have non-contiguous register maps. Attempting to read the non implemented registers returns an error rather than a dummy value which causes 'pmic dump' to terminate prematurely. Fix this by allowing the PMIC driver to return -ENODATA for such registers, which will then be displayed as '--' by pmic dump. Use a single error code rather than any error code so that we can distinguish between a hardware failure reading the PMIC and a non implemented register known to the driver. Signed-off-by: Martin Fuzzey <martin.fuzzey@flowbird.group>
Diffstat (limited to 'cmd/bootmenu.c')
0 files changed, 0 insertions, 0 deletions