zumapro: fix eeprom print in dump_power

Bug: 290542674
Test: adb bugreport
Change-Id: I38a484295be50cb76e29f2170bff7d95301d62b5
Signed-off-by: Daniel Okazaki <dtokazaki@google.com>
This commit is contained in:
Daniel Okazaki 2023-07-25 20:37:06 +00:00
parent 104001cf3a
commit 9302b07567
2 changed files with 9 additions and 8 deletions

View file

@ -261,12 +261,14 @@ then
fi
echo "\n------ Battery EEPROM ------"
if find /sys/devices/platform/*.hsi2c/i2c-*/*-0050/eeprom
if [ -e "/sys/devices/platform/10c90000.hsi2c/i2c-7/7-0050/eeprom" ]
then
for f in /sys/devices/platform/*.hsi2c/i2c-*/*-0050/eeprom
do
xxd $f
done
xxd /sys/devices/platform/10c90000.hsi2c/i2c-7/7-0050/eeprom
fi
if [ -e "/sys/devices/platform/10c90000.hsi2c/i2c-6/6-0050/eeprom" ]
then
xxd /sys/devices/platform/10c90000.hsi2c/i2c-6/6-0050/eeprom
fi
echo "\n------ Charger Stats ------"