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:
Jean Delvare committed 2006-09-20 19:52:47 +00:00
1 parent f104770a84
commit 017ad76a20
1 file changed
+1 -1
+1 -1
View File
@@ -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'))
{