diff options
author | Hans de Goede <hdegoede@redhat.com> | 2023-11-20 16:42:34 +0100 |
---|---|---|
committer | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2023-11-23 14:24:17 +0200 |
commit | 6db829fa2f1295aaad51a3c00f6fc57a27c444bb (patch) | |
tree | 1048a2e0a8bcc6f78ef2c342f336d7a271a00ee8 /drivers/leds/trigger | |
parent | b52cbca22cbf6c9d2700c1e576d0ddcc670e49d5 (diff) |
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/leds/trigger')
0 files changed, 0 insertions, 0 deletions