eeepc-wmi: add an helper using simple return codes
authorCorentin Chary <corentincj@iksaif.net>
Sun, 6 Feb 2011 12:28:31 +0000 (13:28 +0100)
committerMatthew Garrett <mjg@redhat.com>
Mon, 28 Mar 2011 10:05:16 +0000 (06:05 -0400)
commit5c95638d115f9c6661fff254b3beb14b19f88e41
treea8028278fafc70dc2c363b437ab88a4e54124a5c
parent7898cf1a3665d22c4d16308f73e981c6464be81b
eeepc-wmi: add an helper using simple return codes

eeepc_wmi_get_devstate returns an acpi_status, so each
call need extra logic to handle the return code. This
patch add a simple getter, returning a boolean (or a
negative error code).

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