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)
committerMatthew Garrett <mjg@redhat.com>
Thu, 31 May 2012 18:23:39 +0000 (14:23 -0400)
commitff413195e830541afeae469fc866ecd0319abd7e
tree9f6809308dcd61ccdcd727d15e8f376ff03bc221
parent96960880c31131ab906e7e0627ab89e8319c385e
thinkpad-acpi: fix issuing duplicated key events for brightness up/down

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>
drivers/platform/x86/thinkpad_acpi.c