summary refs log tree commit diff
path: root/drivers/platform/x86/Kconfig
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2022-06-24 13:23:38 +0200
committerHans de Goede <hdegoede@redhat.com>2022-06-28 21:45:38 +0200
commit027f88453dbf34cafce1c31e93c216665cdd71d2 (patch)
tree01f5bff87cea05a3e8cea4c98b80f0416cdfde78 /drivers/platform/x86/Kconfig
parentcb1f7d49736e05862c7d7df1c97676bb42c75e5c (diff)
downloadlinux-027f88453dbf34cafce1c31e93c216665cdd71d2.tar.gz
platform/x86: panasonic-laptop: don't report duplicate brightness key-presses
The brightness key-presses might also get reported by the ACPI video bus,
check for this and in this case don't report the presses to avoid reporting
2 presses for a single key-press.

Fixes: ed83c9171829 ("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>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220624112340.10130-6-hdegoede@redhat.com
Diffstat (limited to 'drivers/platform/x86/Kconfig')
-rw-r--r--drivers/platform/x86/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
index f01f75589627..4decefcc0db1 100644
--- a/drivers/platform/x86/Kconfig
+++ b/drivers/platform/x86/Kconfig
@@ -918,6 +918,7 @@ config PANASONIC_LAPTOP
 	tristate "Panasonic Laptop Extras"
 	depends on INPUT && ACPI
 	depends on BACKLIGHT_CLASS_DEVICE
+	depends on ACPI_VIDEO=n || ACPI_VIDEO
 	select INPUT_SPARSEKMAP
 	help
 	  This driver adds support for access to backlight control and hotkeys