]> git.baikalelectronics.ru Git - kernel.git/commit
asus-wmi: factorise wmi_evaluate_method call
authorCorentin Chary <corentincj@iksaif.net>
Sat, 26 Feb 2011 09:20:35 +0000 (10:20 +0100)
committerMatthew Garrett <mjg@redhat.com>
Mon, 28 Mar 2011 10:07:21 +0000 (06:07 -0400)
commit208807cd5df6a59e099e699ab716250f507d72d0
treef679dc63b98fafe77e7561b4ed49d206cc25a380
parent601534f6fb677a598c425747ead7eeab3dba092c
asus-wmi: factorise wmi_evaluate_method call

This patch create a single function to call the
WMI methods. This function handle inexistent methods (when
implemented by the WMI devices, and this is not the case on
Eee PCs), ACPI errors, etc..

Also pack struct bios_arg, and make sure that we always send
a 64bit buffer when calling a WMI method, because this is
needed on Asus notebooks.

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/asus-wmi.c