pmic: Rewrite the pmic command to not only work with single byte transmission
authorLukasz Majewski <lukma@denx.de>
Tue, 15 May 2018 14:26:38 +0000 (16:26 +0200)
committerStefano Babic <sbabic@denx.de>
Fri, 18 May 2018 06:27:26 +0000 (08:27 +0200)
commitd4505c8e0dec72effc1b6017eafe1f6aa025cc5d
tree4728dccaec44190e277fa3e88d1eac3674381b6f
parentc57a226ac46c3cab4b9bf82cfc0f9e81dec3c1b0
pmic: Rewrite the pmic command to not only work with single byte transmission

Up till now it was only possible to use 'pmic' command with a single byte
transmission.
The pmic_read|write functions has been replaced with ones, which don't need
the transmission length as a parameter.

Due to that it is possible now to read data from PMICs transmitting more
data than 1 byte at once (e.g. mc34708)

Signed-off-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/pmic.c