From 08a1bd9684e5e059fc5379ff2e8cb992155b1b81 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Mon, 28 Aug 2006 19:15:28 +0000 Subject: [PATCH] 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 --- CHANGES | 1 + lib/chips.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index cfc5c25a..d6b69f41 100644 --- a/CHANGES +++ b/CHANGES @@ -15,6 +15,7 @@ lm_sensors CHANGES file Fix no sensors being reported as an error Add support for the IT8716F and IT8718F chips Add support for the W83793 chip (Yuan Mu) + Map the 2.6 adm1026's fan8 to fan0 Makefile: Don't grep autoconf.h on user-space targets Fix depmod on non-running kernel version Module i2c-ali1535: Drop redundant semaphore (2.6 backport) diff --git a/lib/chips.c b/lib/chips.c index 0dd05c42..c140f856 100644 --- a/lib/chips.c +++ b/lib/chips.c @@ -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 },