]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: video: Change how we determine if brightness key-presses are handled
authorHans de Goede <hdegoede@redhat.com>
Fri, 24 Jun 2022 11:23:34 +0000 (13:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Jul 2022 15:53:29 +0000 (17:53 +0200)
commitda291d798e293afaab755d517fc3a0bad9755e4c
tree1476d8d942329f0d8a293630624f7a704769ee95
parenta18d50a6655f9aeaca46d8360cc8faab2a66389d
ACPI: video: Change how we determine if brightness key-presses are handled

commit 6a8ce0063b841b55864e83ba4cc48c28c1db4b1c upstream.

Some systems have an ACPI video bus but not ACPI video devices with
backlight capability. On these devices brightness key-presses are
(logically) not reported through the ACPI video bus.

Change how acpi_video_handles_brightness_key_presses() determines if
brightness key-presses are handled by the ACPI video driver to avoid
vendor specific drivers/platform/x86 drivers filtering out their
brightness key-presses even though they are the only ones reporting
these presses.

Fixes: 4ae3aac6548a ("platform/x86: panasonic-laptop: Resolve hotkey double trigger bug")
Reported-and-tested-by: Stefan Seyfried <seife+kernel@b1-systems.com>
Reported-and-tested-by: Kenneth Chan <kenneth.t.chan@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220624112340.10130-2-hdegoede@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/acpi_video.c