Fix ODPM dynamic rail config via file by allowing writes to enabled_rails

Test: Ensure that power stats no longer reports an config error on boot
Bug: 185423551
Change-Id: I5315e31a54b8cbc40fc0f4f361e5b3b81a29ceb8
This commit is contained in:
Stephane Lee 2021-04-14 17:00:48 -07:00 committed by TreeHugger Robot
parent 230a835001
commit a6926e9abb

View file

@ -709,5 +709,8 @@ on post-fs-data
# ODPM
on fs
chown system system /sys/devices/platform/acpm_mfd_bus@17500000/i2c-6/6-001f/s2mpg10-meter/s2mpg10-odpm/iio:device0/enabled_rails
chown system system /sys/devices/platform/acpm_mfd_bus@17510000/i2c-7/7-002f/s2mpg11-meter/s2mpg11-odpm/iio:device1/enabled_rails
chown system system /sys/devices/platform/acpm_mfd_bus@17500000/i2c-7/7-001f/s2mpg10-meter/s2mpg10-odpm/iio:device0/enabled_rails
chown system system /sys/devices/platform/acpm_mfd_bus@17510000/i2c-8/8-002f/s2mpg11-meter/s2mpg11-odpm/iio:device1/enabled_rails