diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2023-05-11 20:52:41 +0200 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2023-05-18 20:40:32 +0200 |
commit | 100e16959c3ca8cb7be788ed3e2c5867481f35f6 (patch) | |
tree | 1ffb171f8b575e53f152452bd9088f9bc9cc6882 /drivers/input/serio | |
parent | Input: Switch i2c drivers back to use .probe() (diff) | |
download | linux-100e16959c3ca8cb7be788ed3e2c5867481f35f6.tar.xz linux-100e16959c3ca8cb7be788ed3e2c5867481f35f6.zip |
Input: libps2 - attach ps2dev instances as serio port's drvdata
In preparation of having unified interrupt handler for PS/2 devices,
instead of attaching instances of psmouse and atkbd structures as serio's
driver data, switch to attaching ps2dev instances.
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Link: https://lore.kernel.org/r/20230511185252.386941-2-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/serio')
-rw-r--r-- | drivers/input/serio/libps2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/serio/libps2.c b/drivers/input/serio/libps2.c index 3e19344eda93..764990723847 100644 --- a/drivers/input/serio/libps2.c +++ b/drivers/input/serio/libps2.c @@ -382,6 +382,7 @@ void ps2_init(struct ps2dev *ps2dev, struct serio *serio) lockdep_set_subclass(&ps2dev->cmd_mutex, serio->depth); init_waitqueue_head(&ps2dev->wait); ps2dev->serio = serio; + serio_set_drvdata(serio, ps2dev); } EXPORT_SYMBOL(ps2_init); |