diff options
-rw-r--r-- | drivers/platform/x86/asus-laptop.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/platform/x86/asus-laptop.c b/drivers/platform/x86/asus-laptop.c index 410e545e427b..652902e6f205 100644 --- a/drivers/platform/x86/asus-laptop.c +++ b/drivers/platform/x86/asus-laptop.c | |||
@@ -243,7 +243,7 @@ static struct backlight_ops asusbl_ops = { | |||
243 | * potentially bad time, such as a timer interrupt. */ | 243 | * potentially bad time, such as a timer interrupt. */ |
244 | static struct workqueue_struct *led_workqueue; | 244 | static struct workqueue_struct *led_workqueue; |
245 | 245 | ||
246 | #define ASUS_LED(object, ledname) \ | 246 | #define ASUS_LED(object, ledname, max) \ |
247 | static void object##_led_set(struct led_classdev *led_cdev, \ | 247 | static void object##_led_set(struct led_classdev *led_cdev, \ |
248 | enum led_brightness value); \ | 248 | enum led_brightness value); \ |
249 | static enum led_brightness object##_led_get( \ | 249 | static enum led_brightness object##_led_get( \ |
@@ -255,13 +255,14 @@ static struct workqueue_struct *led_workqueue; | |||
255 | .name = "asus::" ledname, \ | 255 | .name = "asus::" ledname, \ |
256 | .brightness_set = object##_led_set, \ | 256 | .brightness_set = object##_led_set, \ |
257 | .brightness_get = object##_led_get, \ | 257 | .brightness_get = object##_led_get, \ |
258 | .max_brightness = max \ | ||
258 | } | 259 | } |
259 | 260 | ||
260 | ASUS_LED(mled, "mail"); | 261 | ASUS_LED(mled, "mail", 1); |
261 | ASUS_LED(tled, "touchpad"); | 262 | ASUS_LED(tled, "touchpad", 1); |
262 | ASUS_LED(rled, "record"); | 263 | ASUS_LED(rled, "record", 1); |
263 | ASUS_LED(pled, "phone"); | 264 | ASUS_LED(pled, "phone", 1); |
264 | ASUS_LED(gled, "gaming"); | 265 | ASUS_LED(gled, "gaming", 1); |
265 | 266 | ||
266 | struct key_entry { | 267 | struct key_entry { |
267 | char type; | 268 | char type; |