]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Input: i8042 - Add support for platform filter contexts
authorArmin Wolf <W_Armin@gmx.de>
Mon, 13 Jan 2025 22:13:14 +0000 (23:13 +0100)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 15 Jan 2025 14:26:39 +0000 (16:26 +0200)
commitcec8c359f87c0f7c9cf63b570c0ce968b5ef62a4
tree7f354c47bec3a01ac2295623244e02576d1239b5
parent1e4e3dff9e13e3d12d78cf742980ca731af80c7b
Input: i8042 - Add support for platform filter contexts

Currently the platform filter cannot access any driver-specific state
which forces drivers installing a i8042 filter to have at least some
kind of global pointer for their filter.

Allow callers of i8042_install_filter() to submit a context pointer
which is then passed to the i8042 filter. This frees drivers from the
responsibility of having to manage this global pointer themself.

Also introduce a separate type for the i8042 filter (i8042_filter_t)
so that the function definitions can stay compact.

Tested on a Dell Inspiron 3505.

Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20250113221314.435812-1-W_Armin@gmx.de
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/input/misc/ideapad_slidebar.c
drivers/input/serio/i8042.c
drivers/platform/x86/asus-nb-wmi.c
drivers/platform/x86/asus-wmi.c
drivers/platform/x86/asus-wmi.h
drivers/platform/x86/dell/dell-laptop.c
drivers/platform/x86/hp/hp_accel.c
drivers/platform/x86/msi-laptop.c
drivers/platform/x86/panasonic-laptop.c
drivers/platform/x86/toshiba_acpi.c
include/linux/i8042.h