From 017ad76a208fb92725e0e0692bc2ac9f6a7be569 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Wed, 20 Sep 2006 19:52:47 +0000 Subject: [PATCH] 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 --- prog/eeprom/decode-edid.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prog/eeprom/decode-edid.pl b/prog/eeprom/decode-edid.pl index f0ab9649..dc793e72 100755 --- a/prog/eeprom/decode-edid.pl +++ b/prog/eeprom/decode-edid.pl @@ -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')) {