mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-07 16:01:34 +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@4165 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
f104770a84
commit
017ad76a20
1 file changed
+1
-1
@@ -129,7 +129,7 @@ sub bus_detect
|
||||
return $i;
|
||||
}
|
||||
}
|
||||
elsif (-r "/sys/bus/i2c/devices/$i-0050")
|
||||
elsif (-r "/sys/bus/i2c/devices/$i-0050/eeprom")
|
||||
{
|
||||
if (edid_valid_sysfs($i, '50'))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user