diff options
Diffstat (limited to 'prog/detect/sensors-detect')
-rwxr-xr-x | prog/detect/sensors-detect | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 6fc441aa..fd43db56 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -719,11 +719,6 @@ use vars qw(@i2c_adapter_names); i2c_addrs => [0x2c..0x2e], i2c_detect => sub { emc6w201_detect(@_); }, }, { - name => "Winbond WPCD377I", - driver => "not-a-sensor", - i2c_addrs => [0x2c..0x2e], - i2c_detect => sub { lm85_detect(@_, 7); }, - }, { name => "Analog Devices ADT7462", driver => "adt7462", i2c_addrs => [0x5c, 0x58], @@ -1684,6 +1679,10 @@ use vars qw(@i2c_adapter_names); i2c_addrs => [0x2c..0x2f], i2c_detect => sub { w83791sd_detect(@_); }, }, { + name => "Winbond WPCD377I", + i2c_addrs => [0x2c..0x2e], + i2c_detect => sub { lm85_detect(@_, 7); }, + }, { name => "Fintek F75111R/RG/N (GPIO)", i2c_addrs => [0x37, 0x4e], i2c_detect => sub { fintek_detect(@_, 1); }, @@ -2273,7 +2272,7 @@ use constant FEAT_SMBUS => (1 << 7); features => FEAT_IN | FEAT_FAN | FEAT_TEMP, }, { name => "Nuvoton W83677HG-I (NCT5572D/NCT6771F/NCT6772F/NCT6775F) Super IO Sensors", - driver => "w83627ehf", + driver => sub { kernel_version_at_least(3, 10, 0) ? "nct6775" : "w83627ehf" }, devid => 0xB470, devid_mask => 0xFFF0, logdev => 0x0b, @@ -4574,7 +4573,9 @@ sub scan_cpu sub chip_special_cases { # Some chip to driver mappings depend on the environment - foreach my $chip (@chip_ids) { + foreach my $chip (@chip_ids, @superio_ids_natsemi, @superio_ids_smsc, + @superio_ids_smsc_ns, @superio_ids_winbond, + @superio_ids_ite) { if (ref($chip->{driver}) eq 'CODE') { $chip->{driver} = $chip->{driver}->(); } |