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

Henrique de Moraes Holschuh linux-thinkpad@linux-thinkpad.org
Mon, 23 Oct 2006 17:03:59 -0300


On Mon, 23 Oct 2006, Shem Multinymous wrote:
> 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.

It gets changed to IBMACPI_FAN_EC_AUTO in a later patch. This is just the
"move things around, change little" cleanup patch, so I prefered to do it
later...

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh