diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2026-07-03 22:57:27 -0700 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2026-10-14 10:17:03 -0700 |
| commit | fe676cb1e4678a7cb9901652d00155a8b1dc065a (patch) | |
| tree | 5b76a3250b9ddd77aacbeb1dc970b35c67f7463d /rust/kernel/alloc/kvec/errors.rs | |
| parent | 779db8dab7b972f029f0f08fa4f7d60c8a8d2348 (diff) | |
Input: maplemouse - stop polling and clear callback on close
In dc_mouse_close(), pass NULL instead of dc_mouse_callback to
maple_getcond_callback() to both stop polling and clear the callback
pointer when the input device is closed.
This makes the manual clearing of mdev->callback in
remove_maple_mouse() redundant, as input_unregister_device()
automatically closes the device if it was open. Remove the redundant
assignment.
Assisted-by: Antigravity:gemini-3.5-flash
Link: https://patch.msgid.link/20260703-b4-maple-cleanup-v1-4-41e424964da5@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions
