]> git.baikalelectronics.ru Git - kernel.git/commit
asus-wmi: try to guess the right DSTS methods
authorCorentin Chary <corentincj@iksaif.net>
Sat, 26 Feb 2011 09:20:36 +0000 (10:20 +0100)
committerMatthew Garrett <mjg@redhat.com>
Mon, 28 Mar 2011 10:07:21 +0000 (06:07 -0400)
commit8ff94e59e6a64da8794063c000ebc8061152762e
tree4ac93d5cfc8b69da16cdee231ae4ee1b0fd94b66
parent208807cd5df6a59e099e699ab716250f507d72d0
asus-wmi: try to guess the right DSTS methods

This is tricky, new WMI aware notebooks seems to use
0x53545344 while Eee PCs are using 0x53544344. But there
is no way to know if there is an Eee PC in that wild that is
using 0x53545344 or a notebook using 0x53544344. So the
driver try to guess the available DSTS method ... But most Eee PCs
never return 0xFFFFFFFE when a method is not available, they return
0 instead (and that's useless).

So, first, try 0x53544344 then 0x53545344. We will find
a better way when we got more data.

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/asus-wmi.c