summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Bestas <mkbestas@lineageos.org>2019-01-23 02:05:38 +0200
committerJulian Veit <claymore1298@gmail.com>2019-01-26 09:49:25 +0100
commite6bb0b24df3b8be7ece7e36c8702ffd8c1bfc970 (patch)
treeb227820df830c735b690a179c37ade5534e4ae94
parent2dac9154060b2beb7b8a0ca99c4d41f9ae357bed (diff)
legacy: Label msm8916 sysfs_{battery,usb}_supply
Change-Id: I2ebcd9e68db85f9924aca8092626099ff5a29609
-rw-r--r--legacy-common/file_contexts3
1 files changed, 3 insertions, 0 deletions
diff --git a/legacy-common/file_contexts b/legacy-common/file_contexts
index 049c9ae..f40c8e1 100644
--- a/legacy-common/file_contexts
+++ b/legacy-common/file_contexts
@@ -28,6 +28,9 @@
/sys/devices(/platform)?/soc\.0/qpnp-smbcharger-[a-z0-9]+/power_supply/battery(/.*)? u:object_r:sysfs_battery_supply:s0
/sys/devices(/platform)?/soc\.0/qpnp-smbcharger-[a-z0-9]+/power_supply/dc(/.*)? u:object_r:sysfs_battery_supply:s0
/sys/devices(/platform)?/soc\.0/qpnp-vm-bms-[a-z0-9]+/power_supply/bms(/.*)? u:object_r:sysfs_battery_supply:s0
+/sys/devices(/platform)?/soc\.0/[a-f0-9]+\.i2c/i2c-[0-9]+/[0-9]+-[a-f0-9]+/power_supply/battery(/.*)? u:object_r:sysfs_battery_supply:s0
+/sys/devices(/platform)?/soc\.0/[a-f0-9]+\.i2c/i2c-[0-9]+/[0-9]+-[a-f0-9]+/power_supply/qpnp-dc(/.*)? u:object_r:sysfs_usb_supply:s0
+/sys/devices(/platform)?/soc\.0/[a-f0-9]+\.usb/power_supply/usb(/.*)? u:object_r:sysfs_usb_supply:s0
# Graphics
/sys/devices/mdp\.0/qcom,mdss_fb_primary\.[a-z0-9]+/leds/lcd-backlight(/.*)? u:object_r:sysfs_graphics:s0