From: Thomas Renninger Date: Fri, 21 May 2010 14:18:09 +0000 (+0200) Subject: x86 platform drivers: hp-wmi Reorder event id processing X-Git-Tag: v2.6.36-rc1~579^2~86 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=751ae808f6b29803228609f51aa1ae057f5c576e;p=pandora-kernel.git 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 Signed-off-by: Matthew Garrett CC: linux-acpi@vger.kernel.org CC: platform-driver-x86@vger.kernel.org --- Reading git-diff-tree failed