]> git.baikalelectronics.ru Git - kernel.git/commit
dell-wmi: Use acpi_video_handles_brightness_key_presses()
authorHans de Goede <hdegoede@redhat.com>
Tue, 22 Dec 2015 18:09:49 +0000 (19:09 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 1 Jan 2016 02:14:51 +0000 (03:14 +0100)
commitf735e4d1f35f5091dc95c70a0e44bcc89fe2f305
treeed5cb265cad9545a42390d75cad2de6b15bbd080
parent59b1ffaacdef9f2a58dcdf81371c0793c6e257bd
dell-wmi: Use acpi_video_handles_brightness_key_presses()

Use the new acpi_video_handles_brightness_key_presses function to check
if we should report brightness key-presses.

This makes the code both easier to read and makes it properly report
key-presses when acpi-video is not reporting them for reasons other
then the backlight type being vendor.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/platform/x86/dell-wmi.c