Update i2c bus sysfs path

Bug: 296941196
Test: make sure i2c bus paths exist and are accessable.
Change-Id: Id5f8d12c35c6c0d41e82776d2d6dff4371e73213
This commit is contained in:
Zheng Pan 2023-08-22 17:26:13 -07:00 committed by Daniel Okazaki
parent 6b061bbc49
commit 05a3dcba0a
2 changed files with 2 additions and 4 deletions

View file

@ -9,9 +9,7 @@ on init
chown system system /d/regmap/6-0057-pca9468-mains/registers
# Dump eeprom
chown system system /sys/devices/platform/10c90000.hsi2c/i2c-6/6-0050/eeprom
chown system system /sys/devices/platform/10c90000.hsi2c/i2c-7/7-0050/eeprom
chown system system /sys/devices/platform/10ca0000.hsi2c/i2c-6/6-0050/eeprom
chown system system /sys/devices/platform/10ca0000.hsi2c/i2c-10/10-0050/eeprom
chown system system /dev/battery_history
chmod 0644 /dev/battery_history

View file

@ -679,5 +679,5 @@ void addNFC(std::shared_ptr<PowerStats> p) {
"NFC", "NFC subsystem");
p->addStateResidencyDataProvider(std::make_unique<GenericStateResidencyDataProvider>(
"/sys/devices/platform/10c80000.hsi2c/i2c-6/6-0008/power_stats", cfgs));
"/sys/devices/platform/10c90000.hsi2c/i2c-9/9-0008/power_stats", cfgs));
}