diff options
| author | Yuan Can <[email protected]> | 2024-11-08 05:52:23 +0000 |
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2024-11-08 05:54:44 +0000 |
| commit | 5c822c0ce5cc83ed4cd8394f3dc46dae8d9a681d (patch) | |
| tree | 1e035c07aaf6878791f04a5dbf0e74fbfc3db1c7 /rust/helpers/helpers.c | |
| parent | Input: fix regression when re-registering input handlers (diff) | |
| download | kernel-5c822c0ce5cc83ed4cd8394f3dc46dae8d9a681d.tar.gz kernel-5c822c0ce5cc83ed4cd8394f3dc46dae8d9a681d.zip | |
Input: cs40l50 - fix wrong usage of INIT_WORK()
In cs40l50_add(), the work_data is a local variable and the work_data.work
should initialize with INIT_WORK_ONSTACK() instead of INIT_WORK().
Small error in cs40l50_erase() also fixed in this commit.
Fixes: c38fe1bb5d21 ("Input: cs40l50 - Add support for the CS40L50 haptic driver")
Signed-off-by: Yuan Can <[email protected]>
Reviewed-by: James Ogletree <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Cc: [email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
