]> git.itanic.dy.fi Git - linux-stable/commit
platform/x86: asus-wmi: Change q500a_i8042_filter() into a generic i8042-filter
authorHans de Goede <hdegoede@redhat.com>
Mon, 20 Nov 2023 15:42:34 +0000 (16:42 +0100)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 23 Nov 2023 12:24:17 +0000 (14:24 +0200)
commit6db829fa2f1295aaad51a3c00f6fc57a27c444bb
tree1048a2e0a8bcc6f78ef2c342f336d7a271a00ee8
parentb52cbca22cbf6c9d2700c1e576d0ddcc670e49d5
platform/x86: asus-wmi: Change q500a_i8042_filter() into a generic i8042-filter

Change asus_q500a_i8042_filter() into a generic i8042-filter,
using a new filter_i8042_e1_extended_codes flag in the quirks struct
to decide if e1 extended codes should be filtered out or not.

This is a preparation patch for adding support for filtering volume key
events being reported twice through both the PS/2 keyboard and asus-wmi.

Note while modifying the code also drop the unnecessary unlikely()
annotations, this is not in a hot path so those are not necessary.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20231120154235.610808-3-hdegoede@redhat.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/asus-nb-wmi.c
drivers/platform/x86/asus-wmi.c
drivers/platform/x86/asus-wmi.h