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)
commit1d070f89a723bd296865dd7eb61c8050763e6e3b
tree4ac93d5cfc8b69da16cdee231ae4ee1b0fd94b66
parentd33da3b6866975b17fbec67540f6153f5dcdcec7
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