ACPI: asus_acpi: rework model detection
authorKarol Kozimor <sziwan@hell.org.pl>
Fri, 30 Jun 2006 23:11:00 +0000 (19:11 -0400)
committerLen Brown <len.brown@intel.com>
Sat, 1 Jul 2006 00:37:50 +0000 (20:37 -0400)
commitffab0d9507dc527ff6d704ec5e7e7ccfee119fb1
treeb19a776fa4df3619583173f1b14348220eb7f294
parentebccb84810729f0e86a83a65681ba2de45ff84d8
ACPI: asus_acpi: rework model detection

This patch reworks laptop model detection.

This addresses the Samsung P30 issue, where the INIT method would return no
object, but the implicit return in the AML interpreter would confuse the
driver. It also accounts for a newer batch of Asus models whose INIT
returns ACPI_TYPE_BUFFER instead of STRING.

The handling is now much leaner, if we get a buffer or a string, we check
against known values, in every other case we use a different path
(currently DSDT signatures). The bulk of this patch is separating the
string matching from asus_hotk_get_info() into a separate function.

This patch properly fixes http://bugme.osdl.org/show_bug.cgi?id=5067 and
http://bugme.osdl.org/show_bug.cgi?id=5092 and makes the driver fully
functional again with acpi=strict on all machines.

Signed-off-by: Karol Kozimor <sziwan@hell.org.pl>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/asus_acpi.c