diff options
author | 2023-11-20 16:42:34 +0100 | |
---|---|---|
committer | 2023-11-23 14:24:17 +0200 | |
commit | 6db829fa2f1295aaad51a3c00f6fc57a27c444bb (patch) | |
tree | 1048a2e0a8bcc6f78ef2c342f336d7a271a00ee8 /drivers/platform/surface/aggregator/core.c | |
parent | platform/x86: asus-wmi: Move i8042 filter install to shared asus-wmi code (diff) | |
download | linux-rng-6db829fa2f1295aaad51a3c00f6fc57a27c444bb.tar.xz linux-rng-6db829fa2f1295aaad51a3c00f6fc57a27c444bb.zip |
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>
Diffstat (limited to 'drivers/platform/surface/aggregator/core.c')
0 files changed, 0 insertions, 0 deletions