]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: ibm-acpi: Use a enum to select the thermal sensor reading strategy
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Fri, 24 Nov 2006 13:47:08 +0000 (11:47 -0200)
committerLen Brown <len.brown@intel.com>
Thu, 7 Dec 2006 06:38:38 +0000 (01:38 -0500)
commit08670bed200bdfa052bb10a67866e67afbcb0ab2
tree0453e9e9cd51bb35f049a8cd87bfaeb7a30ecce3
parentb0ae105c8989b0946f3695599ebe91dd3280dbce
ACPI: ibm-acpi: Use a enum to select the thermal sensor reading strategy

This patch consolidades all decisions regarding the strategy to be used to
read thinkpad thermal sensors into a single enum, and refactors the
thermal sensor reading code to use a much more readable (and easier to
extend) switch() construct, in a separate function.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
drivers/acpi/ibm_acpi.c