eeepc-wmi: reorder device ids
authorCorentin Chary <corentincj@iksaif.net>
Sun, 6 Feb 2011 12:28:43 +0000 (13:28 +0100)
committerMatthew Garrett <mjg@redhat.com>
Mon, 28 Mar 2011 10:05:20 +0000 (06:05 -0400)
Each device seems to be in a "group" (devid >> 16 & 0xFF).

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

index 16c7f2d62515d850dd99a21b2310de14914bf3bd..eea8c942653b2ca4033ad93c19012c04cf84166e 100644 (file)
@@ -65,21 +65,32 @@ MODULE_ALIAS("wmi:"EEEPC_WMI_MGMT_GUID);
 #define NOTIFY_BRNDOWN_MIN             0x20
 #define NOTIFY_BRNDOWN_MAX             0x2e
 
+/* WMI Methods */
 #define EEEPC_WMI_METHODID_DSTS                0x53544344
 #define EEEPC_WMI_METHODID_DEVS                0x53564544
 #define EEEPC_WMI_METHODID_CFVS                0x53564643
 
+/* Wireless */
 #define EEEPC_WMI_DEVID_WLAN           0x00010011
 #define EEEPC_WMI_DEVID_BLUETOOTH      0x00010013
 #define EEEPC_WMI_DEVID_WIMAX          0x00010017
 #define EEEPC_WMI_DEVID_WWAN3G         0x00010019
+
+/* Backlight and Brightness */
 #define EEEPC_WMI_DEVID_BACKLIGHT      0x00050011
 #define EEEPC_WMI_DEVID_BRIGHTNESS     0x00050012
+
+/* Misc */
 #define EEEPC_WMI_DEVID_CAMERA         0x00060013
+
+/* Storage */
 #define EEEPC_WMI_DEVID_CARDREADER     0x00080013
+
+/* Input */
 #define EEEPC_WMI_DEVID_TOUCHPAD       0x00100011
 #define EEEPC_WMI_DEVID_TOUCHPAD_LED   0x00100012
 
+/* DSTS masks */
 #define EEEPC_WMI_DSTS_STATUS_BIT      0x00000001
 #define EEEPC_WMI_DSTS_PRESENCE_BIT    0x00010000
 #define EEEPC_WMI_DSTS_BRIGHTNESS_MASK 0x000000FF