summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2020-09-10 15:06:04 +0200
committerJean Delvare <jdelvare@suse.de>2020-09-10 15:06:04 +0200
commit26bcc85221d83402cd4a7658c00dc06347b45dd6 (patch)
tree24234f41ab8badd2debcbed75f646e9925e3aa64
parentec70ab509abb1ee9bcd042e36deb84baa27d88f5 (diff)
downloadi2c-tools-git-26bcc85221d83402cd4a7658c00dc06347b45dd6.tar.gz
decode-vaio: Scan more i2c buses
While the laptop I originally developed decode-vaio on, only had 5 i2c buses, there could be more on other models, and there are definitely more on the system I use to test the script (using i2c-stub) these days. So look for the VAIO EEPROM on up to 32 i2c buses to be on the safe side. Signed-off-by: Jean Delvare <jdelvare@suse.de>
-rwxr-xr-xeeprom/decode-vaio2
1 files changed, 1 insertions, 1 deletions
diff --git a/eeprom/decode-vaio b/eeprom/decode-vaio
index 84e4590..c2aefb8 100755
--- a/eeprom/decode-vaio
+++ b/eeprom/decode-vaio
@@ -237,7 +237,7 @@ END
print("\n");
}
-for (my $i = 0, $found=0; $i <= 4 && !$found; $i++)
+for (my $i = 0, $found=0; $i <= 31 && !$found; $i++)
{
if (-r "/sys/bus/i2c/devices/$i-0057/eeprom")
{