[ltp] [patch 06/12][2.6.18] ibm-acpi: cleanup fan_write

Shem Multinymous linux-thinkpad@linux-thinkpad.org
Mon, 23 Oct 2006 21:20:09 +0200


On 10/23/06, Henrique de Moraes Holschuh <hmh@hmh.eng.br> wrote:
> +static int fan_write_enable( void )
> +{
> +       switch (fan_control_access_mode) {
> +       case IBMACPI_FAN_WR_ACPI_FANS:
> +       case IBMACPI_FAN_WR_TPEC:
> +               if (!acpi_ec_write(fan_status_offset, 0x80))
> +                       return -EIO;
> +               break;

It's worth noting that this is the same as "level auto", i.e., it
changes the level even if the fan was already enabled but in manual or
disengaged mode.

  Shem