]> git.baikalelectronics.ru Git - kernel.git/commit
hp-wmi: Enable hotkeys on some systems
authorKyle Evans <kvans32@gmail.com>
Mon, 9 Jun 2014 17:26:06 +0000 (12:26 -0500)
committerMatthew Garrett <matthew.garrett@nebula.com>
Tue, 10 Jun 2014 23:11:11 +0000 (19:11 -0400)
commit574f7269775f0a1d3196299e9fc5ba6aeeeee2c2
treeab33c3ed9fb0f8747d5682a702399acadaba21e8
parent1688cb9c8073ecb5f124abe9c85aee00a81b459b
hp-wmi: Enable hotkeys on some systems

This is a third attempt to enable these buttons. The new variable being
commit 85f153412a5568cbafa05139f7f741457975e20e (i.e. hp-wmi: detect
"2009 BIOS or later"). Older systems that do not have the 2009 BIOS query
method respond with a dummy value, in this case 4. Using that, we can
target a fairly narrow group of systems. i.e. old enough to not have
HPWMI_FEATURE_QUERY 0xd, but new enough to have HPWMI_BIOS_QUERY 0x9.
This group may be further limited if some systems respond with something
other than 4 to non-existant feature queries.

Signed-off-by: Kyle Evans <kvans32@gmail.com>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
drivers/platform/x86/hp-wmi.c