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)
committerMatthew Garrett <mjg@redhat.com>
Tue, 20 Mar 2012 16:02:23 +0000 (12:02 -0400)
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>
drivers/platform/x86/dell-laptop.c

index 27600a1..a05fc9c 100644 (file)
@@ -641,6 +641,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)