The original adm1026 driver numbered the fans from 0 to 7, and so does

libsensors. The Linux 2.6 adm1026 driver uses the standard numebring
(from 1 to 8). Map fan0 to fan8 to make things work while keeping
confusion to the minimum (hopefully.)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4118 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2006-08-28 19:15:28 +00:00
1 parent 78e85df9ff
commit 08a1bd9684
2 files changed
+4 -3

No files matched your search

+3 -3
View File
@@ -2969,13 +2969,13 @@ static sensors_chip_feature adm1026_features[] = {
ADM1026_SYSCTL_IN16, VALUE(2), 3 },
{ SENSORS_ADM1026_FAN0, "fan0",
NOMAP, NOMAP, R,
ADM1026_SYSCTL_FAN0, VALUE(2), 0 },
ADM1026_SYSCTL_FAN0, VALUE(2), 0, "fan8_input", 0 },
{ SENSORS_ADM1026_FAN0_MIN, "fan0_min",
SENSORS_ADM1026_FAN0, SENSORS_ADM1026_FAN0, RW,
ADM1026_SYSCTL_FAN0, VALUE(1), 0 },
ADM1026_SYSCTL_FAN0, VALUE(1), 0, "fan8_min", 0 },
{ SENSORS_ADM1026_FAN0_DIV, "fan0_div",
SENSORS_ADM1026_FAN0, NOMAP, RW,
ADM1026_SYSCTL_FAN_DIV, VALUE(1), 0 },
ADM1026_SYSCTL_FAN_DIV, VALUE(1), 0, "fan8_div", 0 },
{ SENSORS_ADM1026_FAN1, "fan1",
NOMAP, NOMAP, R,
ADM1026_SYSCTL_FAN1, VALUE(2), 0 },