diff options
author | Thomas Renninger | 2010-05-21 16:18:09 +0200 |
---|---|---|
committer | Matthew Garrett | 2010-08-03 09:48:40 -0400 |
commit | 751ae808f6b29803228609f51aa1ae057f5c576e (patch) | |
tree | cc0906d31b8968c99822061924c5d0d799239b5f /arch | |
parent | 4b30fbca4f64bc70c59867ad5769c37efb587ff4 (diff) |
x86 platform drivers: hp-wmi Reorder event id processing
Event id 0x4 defines the hotkey event.
No need (or even wrong) to query HPWMI_HOTKEY_QUERY if event id is != 0x4.
Reorder the eventcode conditionals and use switch case instead of if/else.
Use an enum for the event ids cases.
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
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions