mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 11:37:06 +02:00
iio: qcom-spmi-adc5-gen3 : update register dump API
Correct base offset and register read API used in register dump API called for conversion faults. Change-Id: I274d40fe29f9f32238b9baa5e42b23d4df64cbf2 Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
This commit is contained in:
parent
558f4d2b64
commit
ee48149cfa
|
|
@ -507,7 +507,7 @@ static void adc5_gen3_dump_regs_debug(struct adc5_chip *adc)
|
|||
|
||||
for (j = 0; j < 2; j++) {
|
||||
if (!j) {
|
||||
offset = 0;
|
||||
offset = adc->base;
|
||||
pr_debug("ADC SDAM DUMP\n");
|
||||
} else {
|
||||
if (adc->debug_base)
|
||||
|
|
@ -518,7 +518,7 @@ static void adc5_gen3_dump_regs_debug(struct adc5_chip *adc)
|
|||
}
|
||||
|
||||
for (i = 0; i < ADC_SDAM_REG_DUMP; i++) {
|
||||
rc = adc5_read(adc, offset, buf, sizeof(buf));
|
||||
rc = regmap_bulk_read(adc->regmap, offset, buf, sizeof(buf));
|
||||
if (rc < 0) {
|
||||
pr_err("debug register dump failed\n");
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user