hp-wmi: limit hotkey enable
authorKyle Evans <kvans32@gmail.com>
Fri, 11 Sep 2015 15:40:17 +0000 (10:40 -0500)
committerDarren Hart <dvhart@linux.intel.com>
Fri, 18 Sep 2015 01:14:11 +0000 (18:14 -0700)
commit8a1513b49321e503fd6c8b6793e3b1f9a8a3285b
tree0303ab411c759f664a7a45c298dc9f1c73398905
parent53147b6cabee5e8d1997b5682fcc0c3b72ddf9c2
hp-wmi: limit hotkey enable

Do not write initialize magic on systems that do not have
feature query 0xb. Fixes Bug #82451.

Redefine FEATURE_QUERY to align with 0xb and FEATURE2 with 0xd
for code clearity.

Add a new test function, hp_wmi_bios_2008_later() & simplify
hp_wmi_bios_2009_later(), which fixes a bug in cases where
an improper value is returned. Probably also fixes Bug #69131.

Add missing __init tag.

Signed-off-by: Kyle Evans <kvans32@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/hp-wmi.c