Skip to content

Commit 395402e

Browse files
acelanbwhacks
authored andcommitted
dell-laptop: touchpad LED should persist its status after S3
commit 2d5de9e 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>
1 parent c9d8f95 commit 395402e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/platform/x86/dell-laptop.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,7 @@ static void touchpad_led_set(struct led_classdev *led_cdev,
642642
static struct led_classdev touchpad_led = {
643643
.name = "dell-laptop::touchpad",
644644
.brightness_set = touchpad_led_set,
645+
.flags = LED_CORE_SUSPENDRESUME,
645646
};
646647

647648
static int __devinit touchpad_led_init(struct device *dev)

0 commit comments

Comments
 (0)