summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAceLan Kao <acelan.kao@canonical.com>2012-01-17 16:18:06 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-27 10:16:52 -0700
commitcb3e0956985114a629cc5bdb36526920983d3e32 (patch)
tree1485509e6ca39a54cfa29c0d43e42fae367da393
parent318ab7f31dfe496fdecf28657a25a7de5a72f1de (diff)
downloadlinux-stable-cb3e0956985114a629cc5bdb36526920983d3e32.tar.gz
linux-stable-cb3e0956985114a629cc5bdb36526920983d3e32.tar.bz2
linux-stable-cb3e0956985114a629cc5bdb36526920983d3e32.zip
dell-laptop: touchpad LED should persist its status after S3
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/platform/x86/dell-laptop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/x86/dell-laptop.c b/drivers/platform/x86/dell-laptop.c
index 7621ac2c96d7..92e42d448e4e 100644
--- a/drivers/platform/x86/dell-laptop.c
+++ b/drivers/platform/x86/dell-laptop.c
@@ -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)