Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165241
b: refs/heads/master
c: 977c328
h: refs/heads/master
i:
  165239: 8db63fa
v: v3
  • Loading branch information
Corentin Chary authored and Len Brown committed Aug 28, 2009
1 parent cfa13b9 commit 4110a36
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f641375b65f64e83be8be68ae1ebce21ee4fd578
refs/heads/master: 977c328d81e31fde70c5ba381d9cf7357451dd74
13 changes: 7 additions & 6 deletions trunk/drivers/platform/x86/asus-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ static struct backlight_ops asusbl_ops = {
* potentially bad time, such as a timer interrupt. */
static struct workqueue_struct *led_workqueue;

#define ASUS_LED(object, ledname) \
#define ASUS_LED(object, ledname, max) \
static void object##_led_set(struct led_classdev *led_cdev, \
enum led_brightness value); \
static enum led_brightness object##_led_get( \
Expand All @@ -255,13 +255,14 @@ static struct workqueue_struct *led_workqueue;
.name = "asus::" ledname, \
.brightness_set = object##_led_set, \
.brightness_get = object##_led_get, \
.max_brightness = max \
}

ASUS_LED(mled, "mail");
ASUS_LED(tled, "touchpad");
ASUS_LED(rled, "record");
ASUS_LED(pled, "phone");
ASUS_LED(gled, "gaming");
ASUS_LED(mled, "mail", 1);
ASUS_LED(tled, "touchpad", 1);
ASUS_LED(rled, "record", 1);
ASUS_LED(pled, "phone", 1);
ASUS_LED(gled, "gaming", 1);

struct key_entry {
char type;
Expand Down

0 comments on commit 4110a36

Please sign in to comment.