]> git.hungrycats.org Git - linux/commit
hp-wmi: limit hotkey enable
authorKyle Evans <kvans32@gmail.com>
Fri, 11 Sep 2015 15:40:17 +0000 (10:40 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Oct 2015 11:51:39 +0000 (13:51 +0200)
commitb2b2c7be0fc8e9b0f6f32215cd23b54b07ec4b31
tree2badb6c923bbc188453805298dd651dddebb41b3
parent6abf903c8eb352a3705353789ac200d188466f16
hp-wmi: limit hotkey enable

commit 8a1513b49321e503fd6c8b6793e3b1f9a8a3285b upstream.

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>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/platform/x86/hp-wmi.c