diff options
author | Armin Wolf <W_Armin@gmx.de> | 2025-01-13 23:13:14 +0100 |
---|---|---|
committer | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2025-01-15 16:26:39 +0200 |
commit | cec8c359f87c0f7c9cf63b570c0ce968b5ef62a4 (patch) | |
tree | 7f354c47bec3a01ac2295623244e02576d1239b5 /drivers/input/misc/ad714x.h | |
parent | 1e4e3dff9e13e3d12d78cf742980ca731af80c7b (diff) |
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>
Diffstat (limited to 'drivers/input/misc/ad714x.h')
0 files changed, 0 insertions, 0 deletions