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:
Jacky Liu 2024-02-05 20:00:25 +08:00 committed by Pat Tjin
parent 21dc8acdaa
commit 8548e9b2be
6 changed files with 41 additions and 207 deletions

View file

@ -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