Changeset 4118

Show
Ignore:
Timestamp:
08/28/06 21:15:28 (8 years ago)
Author:
khali
Message:

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.)

Location:
lm-sensors/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r4116 r4118  
    1616           Add support for the IT8716F and IT8718F chips 
    1717           Add support for the W83793 chip (Yuan Mu) 
     18           Map the 2.6 adm1026's fan8 to fan0 
    1819  Makefile: Don't grep autoconf.h on user-space targets 
    1920            Fix depmod on non-running kernel version 
  • lm-sensors/trunk/lib/chips.c

    r4109 r4118  
    29702970    { SENSORS_ADM1026_FAN0, "fan0", 
    29712971                NOMAP, NOMAP, R, 
    2972                 ADM1026_SYSCTL_FAN0, VALUE(2), 0 }, 
     2972                ADM1026_SYSCTL_FAN0, VALUE(2), 0, "fan8_input", 0 }, 
    29732973    { SENSORS_ADM1026_FAN0_MIN, "fan0_min", 
    29742974                SENSORS_ADM1026_FAN0, SENSORS_ADM1026_FAN0, RW, 
    2975                 ADM1026_SYSCTL_FAN0, VALUE(1), 0 }, 
     2975                ADM1026_SYSCTL_FAN0, VALUE(1), 0, "fan8_min", 0 }, 
    29762976    { SENSORS_ADM1026_FAN0_DIV, "fan0_div", 
    29772977                SENSORS_ADM1026_FAN0, NOMAP, RW, 
    2978                 ADM1026_SYSCTL_FAN_DIV, VALUE(1), 0 }, 
     2978                ADM1026_SYSCTL_FAN_DIV, VALUE(1), 0, "fan8_div", 0 }, 
    29792979    { SENSORS_ADM1026_FAN1, "fan1", 
    29802980                NOMAP, NOMAP, R,