thinkpad-acpi: fix issuing duplicated key events for brightness up/down
authorAlex Hung <alex.hung@canonical.com>
Tue, 24 Apr 2012 08:40:52 +0000 (16:40 +0800)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 9 Jun 2014 12:29:01 +0000 (13:29 +0100)
commitdb1b95998148724046213339cb51c647e0e0825a
tree7a9591bc1d83a9a329c7edf4f04207a6e90c89f7
parentfa79aa5e1b89bb5ec90fbd757513e907ca970ba5
thinkpad-acpi: fix issuing duplicated key events for brightness up/down

commit ff413195e830541afeae469fc866ecd0319abd7e upstream.

The tp_features.bright_acpimode will not be set correctly for brightness
control because ACPI_VIDEO_HID will not be located in ACPI. As a result,
a duplicated key event will always be sent. acpi_video_backlight_support()
is sufficient to detect standard ACPI brightness control.

Signed-off-by: Alex Hung <alex.hung@canonical.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/platform/x86/thinkpad_acpi.c