2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-29 13:28:01 +00:00

Fill the driver field of non-hwmon device definitions automatically.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5461 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare 2008-11-30 09:15:32 +00:00
parent ea71934c18
commit 2ee3b7145d

View File

@ -1104,27 +1104,22 @@ use vars qw(@i2c_adapter_names);
@non_hwmon_chip_ids = (
{
name => "Winbond W83791SD",
driver => "not-a-sensor",
i2c_addrs => [0x2c..0x2f],
i2c_detect => sub { w83791sd_detect(@_); },
}, {
name => "Fintek F75111R/RG/N (GPIO)",
driver => "not-a-sensor",
i2c_addrs => [0x37, 0x4e],
i2c_detect => sub { fintek_detect(@_, 1); },
}, {
name => "ITE IT8201R/IT8203R/IT8206R/IT8266R",
driver => "not-a-sensor",
i2c_addrs => [0x4e],
i2c_detect => sub { ite_overclock_detect(@_); },
}, {
name => "SPD EEPROM",
driver => "not-a-sensor",
i2c_addrs => [0x50..0x57],
i2c_detect => sub { eeprom_detect(@_); },
}, {
name => "EDID EEPROM",
driver => "not-a-sensor",
i2c_addrs => [0x50],
i2c_detect => sub { ddcmonitor_detect(@_); },
}
@ -3141,6 +3136,11 @@ sub chip_special_cases
$chip->{driver} = $chip->{driver}->();
}
}
# Also fill the fake driver name of non-hwmon chips
foreach my $chip (@non_hwmon_chip_ids) {
$chip->{driver} = "not-a-sensor";
}
}
# Each function returns a confidence value. The higher this value, the more