12 Sep 2009 20:22
[PATCH 3/8] thinkpad-acpi: be more strict when detecting a ThinkPad
Henrique de Moraes Holschuh <hmh <at> hmh.eng.br>
2009-09-12 18:22:13 GMT
2009-09-12 18:22:13 GMT
Use stricter checks to decide that we're running on a supported ThinkPad.
This should remove some possible false positives, although nobody ever
bothered to report any.
Signed-off-by: Henrique de Moraes Holschuh <hmh <at> hmh.eng.br>
---
drivers/platform/x86/thinkpad_acpi.c | 22 +++++++++++++---------
1 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
index cc4155c..d69ab3f 100644
--- a/drivers/platform/x86/thinkpad_acpi.c
+++ b/drivers/platform/x86/thinkpad_acpi.c
<at> <at> -1621,6 +1621,9 <at> <at> static void tpacpi_remove_driver_attributes(struct device_driver *drv)
*
* Sources: IBM ThinkPad Public Web Documents (update changelogs),
* Information from users in ThinkWiki
+ *
+ * WARNING: we use this table also to detect that the machine is
+ * a ThinkPad in some cases, so don't remove entries lightly.
*/
#define TPV_Q(__v, __id1, __id2, __bv1, __bv2) \
<at> <at> -1782,6 +1785,12 <at> <at> static void __init tpacpi_check_outdated_fw(void)
}
}
+static bool __init tpacpi_is_fw_known(void)
+{
+ return tpacpi_check_quirks(tpacpi_bios_version_qtable,
(Continue reading)
RSS Feed