]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
dell-laptop: touchpad LED should persist its status after S3
authorAceLan Kao <acelan.kao@canonical.com>
Tue, 17 Jan 2012 08:18:06 +0000 (16:18 +0800)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 11 May 2012 12:14:08 +0000 (13:14 +0100)
commit 2d5de9e84928e35b4d9b46b4d8d5dcaac1cff1fa upstream.

Touchpad LED will not turn on after S3, it will make the touchpad status
doesn't consist with the LED.
By adding one flag to let the LED device restore it's status.

Signed-off-by: AceLan Kao <acelan.kao@canonical.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/platform/x86/dell-laptop.c

index 7621ac2c96d73cf736c652d5dd5b6a8da9bdc7b6..92e42d448e4e2a1595ead429621dfda4a1fe68be 100644 (file)
@@ -642,6 +642,7 @@ static void touchpad_led_set(struct led_classdev *led_cdev,
 static struct led_classdev touchpad_led = {
        .name = "dell-laptop::touchpad",
        .brightness_set = touchpad_led_set,
+       .flags = LED_CORE_SUSPENDRESUME,
 };
 
 static int __devinit touchpad_led_init(struct device *dev)