From 97b07b2d8658f5b7734704272edd2e93f7419077 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Tue, 12 May 2020 16:23:08 +0200 Subject: sensors-detect: Move Winbond WPCD377I to the non-hwmon table Move the detection entry for the Winbond WPCD377I to the @non_hwmon_chip_ids table, where it belongs. This saves one line, and more importantly prevents "not-a-sensor" from being accidentally added to the list of kernel drivers. Signed-off-by: Jean Delvare --- prog/detect/sensors-detect | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 319b1b7b..fd43db56 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -718,11 +718,6 @@ use vars qw(@i2c_adapter_names); driver => "emc6w201", 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", @@ -1683,6 +1678,10 @@ use vars qw(@i2c_adapter_names); name => "Winbond W83791SD", 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], -- cgit v1.2.1