]> git.baikalelectronics.ru Git - kernel.git/commit
X86 platform: hp-wmi Better match the HP WMI query interface
authorThomas Renninger <trenn@suse.de>
Fri, 21 May 2010 14:42:40 +0000 (16:42 +0200)
committerMatthew Garrett <mjg@redhat.com>
Tue, 3 Aug 2010 13:48:43 +0000 (09:48 -0400)
commitf4499e53f6e1f4a66f690f94a0f68c70b35ca448
treebf33f323ac9011331c60172501e9d92b44acd443
parentb88df1a8bc05c52e2b31a09293b8dde8b8e26fe9
X86 platform: hp-wmi Better match the HP WMI query interface

- Improve error handling, by explictly return zero for success, error otherwise
- WMI query command can have arbitrary input sized params
- WMI query command can have specific output sized params (0, 4, 128,..) byte

I like to go on here, but this is a rather intrusive change that should
be looked at first. I am sure the one or other thing can be done better or
there might be typo/bug somewhere.

This did not get any testing yet, only compile tested.

Next steps could be:
  - Eventually introduce hp_wmi_perform_{read,write}_query macros
  - Introduce new wireless query interface (0x1B)
  - more

Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
CC: linux-acpi@vger.kernel.org
CC: platform-driver-x86@vger.kernel.org
drivers/platform/x86/hp-wmi.c