mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-31 13:10:30 +00:00
Do not assume that every i2c chip at 0x50 is handled by the eeprom
driver. Some are handled by the tveeprom driver, which doesn't create the eeprom interface file. So we must really test for the eeprom file, and not the device directory. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4167 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
c90c281af7
commit
222efa20ac
1 file changed
+2
-2
+2
-2
@@ -439,11 +439,11 @@ sub print_edid
|
||||
my ($bus, $address) = @_;
|
||||
my $bytes;
|
||||
|
||||
if (-r "/sys/bus/i2c/devices/$bus-00$address")
|
||||
if (-r "/sys/bus/i2c/devices/$bus-00$address/eeprom")
|
||||
{
|
||||
$bytes = get_edid_sysfs($bus, $address);
|
||||
}
|
||||
elsif (-r "/proc/sys/dev/sensors/eeprom-i2c-$bus-$address")
|
||||
elsif (-r "/proc/sys/dev/sensors/eeprom-i2c-$bus-$address/00")
|
||||
{
|
||||
$bytes = get_edid_procfs($bus, $address);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user