mirror of
https://github.com/Evolution-X-Devices/device_google_gs201
synced 2026-01-27 18:37:19 +00:00
Update i2c device paths
Update i2c device paths with static bus numbers. Also remove some redundant paths. Bug: 323447554 Test: Boot to home Change-Id: Id3f0fccd39b70d247c0d7a17a1944223619ec40e
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
#!/vendor/bin/sh
|
||||
|
||||
for f in /sys/devices/platform/10d60000.hsi2c/i2c-*/i2c-max77759tcpc; do
|
||||
if [ -d $f ]; then
|
||||
echo 0 > $f/contaminant_detection;
|
||||
fi
|
||||
done
|
||||
max77759tcpc_path=/sys/devices/platform/10d60000.hsi2c/i2c-13/13-0025
|
||||
if [ -d $max77759tcpc_path ]; then
|
||||
echo 0 > $max77759tcpc_path/contaminant_detection;
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user