diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2024-07-11 02:48:54 +0300 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2024-07-13 03:15:45 +0300 |
commit | f3efefb6fdcce604413135bd8d4c5568e53a1f13 (patch) | |
tree | 666d25a51d3e5b38ce651cb15dd8e280914b6059 /drivers/input/input-core-private.h | |
parent | 295b89a631fe2935d268a95a9dea284992a7a27d (diff) | |
download | linux-f3efefb6fdcce604413135bd8d4c5568e53a1f13.tar.xz |
Input: yealink - simplify locking in sysfs attribute handling
The locking rules in the driver came from era when sysfs attributes
could live past the point of time when device would be unbound from
the driver, and so used module-global semaphore (potentially shared
between multiple yealink devices). Thankfully these times are long
gone and attributes will not be accessible once they are removed.
Simplify the logic by moving to per-device mutex, stop checking if
there is driver data instance attached to the interface, and use
guard notation to acquire the mutex.
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20240710234855.311366-2-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/input-core-private.h')
0 files changed, 0 insertions, 0 deletions