Re: [PATCH v2 3/3] decode-vaio: Scan more i2c buses

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -for (my $i = 0, $found=0; $i <= 4 && !$found; $i++)
> +for (my $i = 0, $found=0; $i <= 31 && !$found; $i++)

To get rid of the problem entirely, can't we do something like this
with shell globs? Pseudo code:

	foreach (/sys/bus/i2c/devices/*-0057/eeprom)
		$found += <found device>

	if (!$found)
		foreach (/proc/sys/dev/sensors/eeprom-i2c-*-57)
		check_old_interface
		$found += <found device>


Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux