aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorCorentin Chary <corentincj@iksaif.net>2009-11-28 04:32:34 -0500
committerCorentin Chary <corentincj@iksaif.net>2010-02-28 13:35:09 -0500
commit91687cc89af4c447483ec65097809c38c8622639 (patch)
treea22037a009594b4272d24d3423fd6889e849fd5b /drivers/platform
parentd8c6732382a24d2ef23665207263a17f04e3d75a (diff)
asus-laptop: use tabs to indent macros and remove unused ones
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/asus-laptop.c51
1 files changed, 22 insertions, 29 deletions
diff --git a/drivers/platform/x86/asus-laptop.c b/drivers/platform/x86/asus-laptop.c
index 7058cb56f338..5889bda5a03b 100644
--- a/drivers/platform/x86/asus-laptop.c
+++ b/drivers/platform/x86/asus-laptop.c
@@ -50,50 +50,43 @@
50#include <asm/uaccess.h> 50#include <asm/uaccess.h>
51#include <linux/input.h> 51#include <linux/input.h>
52 52
53#define ASUS_LAPTOP_VERSION "0.42" 53#define ASUS_LAPTOP_VERSION "0.42"
54 54
55#define ASUS_HOTK_NAME "Asus Laptop Support" 55#define ASUS_HOTK_NAME "Asus Laptop Support"
56#define ASUS_HOTK_CLASS "hotkey" 56#define ASUS_HOTK_CLASS "hotkey"
57#define ASUS_HOTK_DEVICE_NAME "Hotkey" 57#define ASUS_HOTK_DEVICE_NAME "Hotkey"
58#define ASUS_HOTK_FILE KBUILD_MODNAME 58#define ASUS_HOTK_FILE KBUILD_MODNAME
59#define ASUS_HOTK_PREFIX "\\_SB.ATKD." 59#define ASUS_HOTK_PREFIX "\\_SB.ATKD."
60 60
61 61
62/* 62/*
63 * Some events we use, same for all Asus 63 * Some events we use, same for all Asus
64 */ 64 */
65#define ATKD_BR_UP 0x10 65#define ATKD_BR_UP 0x10
66#define ATKD_BR_DOWN 0x20 66#define ATKD_BR_DOWN 0x20
67#define ATKD_LCD_ON 0x33 67#define ATKD_LCD_ON 0x33
68#define ATKD_LCD_OFF 0x34 68#define ATKD_LCD_OFF 0x34
69 69
70/* 70/*
71 * Known bits returned by \_SB.ATKD.HWRS 71 * Known bits returned by \_SB.ATKD.HWRS
72 */ 72 */
73#define WL_HWRS 0x80 73#define WL_HWRS 0x80
74#define BT_HWRS 0x100 74#define BT_HWRS 0x100
75 75
76/* 76/*
77 * Flags for hotk status 77 * Flags for hotk status
78 * WL_ON and BT_ON are also used for wireless_status() 78 * WL_ON and BT_ON are also used for wireless_status()
79 */ 79 */
80#define WL_ON 0x01 /* internal Wifi */ 80#define WL_ON 0x01 /* internal Wifi */
81#define BT_ON 0x02 /* internal Bluetooth */ 81#define BT_ON 0x02 /* internal Bluetooth */
82#define MLED_ON 0x04 /* mail LED */ 82#define MLED_ON 0x04 /* mail LED */
83#define TLED_ON 0x08 /* touchpad LED */ 83#define TLED_ON 0x08 /* touchpad LED */
84#define RLED_ON 0x10 /* Record LED */ 84#define RLED_ON 0x10 /* Record LED */
85#define PLED_ON 0x20 /* Phone LED */ 85#define PLED_ON 0x20 /* Phone LED */
86#define GLED_ON 0x40 /* Gaming LED */ 86#define GLED_ON 0x40 /* Gaming LED */
87#define LCD_ON 0x80 /* LCD backlight */ 87#define LCD_ON 0x80 /* LCD backlight */
88#define GPS_ON 0x100 /* GPS */ 88#define GPS_ON 0x100 /* GPS */
89#define KEY_ON 0x200 /* Keyboard backlight */ 89#define KEY_ON 0x200 /* Keyboard backlight */
90
91#define ASUS_LOG ASUS_HOTK_FILE ": "
92#define ASUS_ERR KERN_ERR ASUS_LOG
93#define ASUS_WARNING KERN_WARNING ASUS_LOG
94#define ASUS_NOTICE KERN_NOTICE ASUS_LOG
95#define ASUS_INFO KERN_INFO ASUS_LOG
96#define ASUS_DEBUG KERN_DEBUG ASUS_LOG
97 90
98MODULE_AUTHOR("Julien Lerouge, Karol Kozimor, Corentin Chary"); 91MODULE_AUTHOR("Julien Lerouge, Karol Kozimor, Corentin Chary");
99MODULE_DESCRIPTION(ASUS_HOTK_NAME); 92MODULE_DESCRIPTION(ASUS_HOTK_NAME);