Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
91687cc8
Commit
91687cc8
authored
Nov 28, 2009
by
Corentin Chary
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asus-laptop: use tabs to indent macros and remove unused ones
Signed-off-by:
Corentin Chary
<
corentincj@iksaif.net
>
parent
d8c67323
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
29 deletions
+22
-29
drivers/platform/x86/asus-laptop.c
drivers/platform/x86/asus-laptop.c
+22
-29
No files found.
drivers/platform/x86/asus-laptop.c
View file @
91687cc8
...
...
@@ -50,50 +50,43 @@
#include <asm/uaccess.h>
#include <linux/input.h>
#define ASUS_LAPTOP_VERSION
"0.42"
#define ASUS_LAPTOP_VERSION
"0.42"
#define ASUS_HOTK_NAME
"Asus Laptop Support"
#define ASUS_HOTK_CLASS
"hotkey"
#define ASUS_HOTK_DEVICE_NAME
"Hotkey"
#define ASUS_HOTK_FILE
KBUILD_MODNAME
#define ASUS_HOTK_PREFIX
"\\_SB.ATKD."
#define ASUS_HOTK_NAME
"Asus Laptop Support"
#define ASUS_HOTK_CLASS
"hotkey"
#define ASUS_HOTK_DEVICE_NAME
"Hotkey"
#define ASUS_HOTK_FILE
KBUILD_MODNAME
#define ASUS_HOTK_PREFIX
"\\_SB.ATKD."
/*
* Some events we use, same for all Asus
*/
#define ATKD_BR_UP
0x10
#define ATKD_BR_DOWN
0x20
#define ATKD_LCD_ON
0x33
#define ATKD_LCD_OFF
0x34
#define ATKD_BR_UP
0x10
#define ATKD_BR_DOWN
0x20
#define ATKD_LCD_ON
0x33
#define ATKD_LCD_OFF
0x34
/*
* Known bits returned by \_SB.ATKD.HWRS
*/
#define WL_HWRS
0x80
#define BT_HWRS
0x100
#define WL_HWRS
0x80
#define BT_HWRS
0x100
/*
* Flags for hotk status
* WL_ON and BT_ON are also used for wireless_status()
*/
#define WL_ON 0x01
/* internal Wifi */
#define BT_ON 0x02
/* internal Bluetooth */
#define MLED_ON 0x04
/* mail LED */
#define TLED_ON 0x08
/* touchpad LED */
#define RLED_ON 0x10
/* Record LED */
#define PLED_ON 0x20
/* Phone LED */
#define GLED_ON 0x40
/* Gaming LED */
#define LCD_ON 0x80
/* LCD backlight */
#define GPS_ON 0x100
/* GPS */
#define KEY_ON 0x200
/* Keyboard backlight */
#define ASUS_LOG ASUS_HOTK_FILE ": "
#define ASUS_ERR KERN_ERR ASUS_LOG
#define ASUS_WARNING KERN_WARNING ASUS_LOG
#define ASUS_NOTICE KERN_NOTICE ASUS_LOG
#define ASUS_INFO KERN_INFO ASUS_LOG
#define ASUS_DEBUG KERN_DEBUG ASUS_LOG
#define WL_ON 0x01
/* internal Wifi */
#define BT_ON 0x02
/* internal Bluetooth */
#define MLED_ON 0x04
/* mail LED */
#define TLED_ON 0x08
/* touchpad LED */
#define RLED_ON 0x10
/* Record LED */
#define PLED_ON 0x20
/* Phone LED */
#define GLED_ON 0x40
/* Gaming LED */
#define LCD_ON 0x80
/* LCD backlight */
#define GPS_ON 0x100
/* GPS */
#define KEY_ON 0x200
/* Keyboard backlight */
MODULE_AUTHOR
(
"Julien Lerouge, Karol Kozimor, Corentin Chary"
);
MODULE_DESCRIPTION
(
ASUS_HOTK_NAME
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment