platform/x86: thinkpad_acpi: Add hotkey_notify_extended_hotkey() helper
authorHans de Goede <hdegoede@redhat.com>
Tue, 5 Oct 2021 20:23:18 +0000 (22:23 +0200)
committerHans de Goede <hdegoede@redhat.com>
Thu, 14 Oct 2021 11:16:57 +0000 (13:16 +0200)
commit1b8101d51873d4644f0ff15f6eac46614542a76b
treeacc0eb58ed4c084b08f56a7eeea0750c0161023f
parent334f74ee85dc26a50c1a2b0da82517595191f92f
platform/x86: thinkpad_acpi: Add hotkey_notify_extended_hotkey() helper

Factor the extended hotkey handling out of hotkey_notify_hotkey() and
into a new hotkey_notify_extended_hotkey() helper.

This is a preparation patch for adding support the privacy-screen hotkey
toggle (which needs some special handling, it should NOT send an evdev
key-event to userspace...).

Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Mark Pearson <markpearson@lenovo.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211005202322.700909-7-hdegoede@redhat.com
drivers/platform/x86/thinkpad_acpi.c