Browse Source

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>
tags/v4.2
Jean Delvare 5 years ago
parent
commit
26bcc85221
  1. 2
      eeprom/decode-vaio

2
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")
{

Loading…
Cancel
Save