• Martin Fuzzey's avatar
    pmic: allow dump command for non contiguous register maps · b852cca8
    Martin Fuzzey authored
    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: default avatarMartin Fuzzey <martin.fuzzey@flowbird.group>
    b852cca8
Name
Last commit
Last update
.github Loading commit data...
Licenses Loading commit data...
api Loading commit data...
arch Loading commit data...
board Loading commit data...
cmd Loading commit data...
common Loading commit data...
configs Loading commit data...
disk Loading commit data...
doc Loading commit data...
drivers Loading commit data...
dts Loading commit data...
env Loading commit data...
examples Loading commit data...
fs Loading commit data...
include Loading commit data...
lib Loading commit data...
net Loading commit data...
post Loading commit data...
scripts Loading commit data...
test Loading commit data...
tools Loading commit data...
.azure-pipelines.yml Loading commit data...
.checkpatch.conf Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
Kbuild Loading commit data...
Kconfig Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...
config.mk Loading commit data...