platform/x86: panasonic-laptop: don't report duplicate brightness key-presses
authorHans de Goede <hdegoede@redhat.com>
Fri, 24 Jun 2022 11:23:38 +0000 (13:23 +0200)
committerHans de Goede <hdegoede@redhat.com>
Tue, 28 Jun 2022 19:45:38 +0000 (21:45 +0200)
commit027f88453dbf34cafce1c31e93c216665cdd71d2
tree01f5bff87cea05a3e8cea4c98b80f0416cdfde78
parentcb1f7d49736e05862c7d7df1c97676bb42c75e5c
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
drivers/platform/x86/Kconfig
drivers/platform/x86/panasonic-laptop.c