linux/drivers/input
Dmitry Torokhov f3efefb6fd 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>
2024-07-12 17:15:45 -07:00
..
gameport Input: gameport - use sizeof(*pointer) instead of sizeof(type) 2024-06-07 11:59:41 -07:00
joystick Input: adc-joystick - move axes data into the main structure 2024-06-21 10:16:40 -07:00
keyboard Input: omap-keypad - use driver core to instantiate device attributes 2024-07-12 17:15:29 -07:00
misc Input: yealink - simplify locking in sysfs attribute handling 2024-07-12 17:15:45 -07:00
mouse Input: cypress_ps2 - use u8 when dealing with byte data 2024-07-03 13:48:53 -07:00
rmi4 Linux 6.9 2024-05-27 21:37:18 -07:00
serio Input: serio - use sizeof(*pointer) instead of sizeof(type) 2024-06-07 11:59:21 -07:00
tablet Input: tablet - use sizeof(*pointer) instead of sizeof(type) 2024-06-02 21:32:03 -07:00
tests Input: add missing MODULE_DESCRIPTION() macros 2024-06-09 14:38:48 -07:00
touchscreen Input: atmel_mxt_ts - use driver core to instantiate device attributes 2024-07-12 17:15:08 -07:00
apm-power.c
evbug.c
evdev.c Input: make events() method return number of events processed 2024-07-08 16:22:49 -07:00
ff-core.c Input: ff-core - prefer struct_size over open coded arithmetic 2024-04-30 14:04:31 -07:00
ff-memless.c input: drop empty comment blocks 2022-09-29 16:25:42 -07:00
input-compat.c
input-compat.h
input-core-private.h Input: deactivate MT slots when inhibiting or suspending devices 2022-07-20 11:35:13 -07:00
input-leds.c Input: leds - change config symbol dependency for audio mute trigger 2024-03-03 14:46:06 -08:00
input-mt.c Input: deactivate MT slots when inhibiting or suspending devices 2022-07-20 11:35:13 -07:00
input-poller.c
input-poller.h
input.c Input: do not check number of events in input_pass_values() 2024-07-08 16:22:49 -07:00
joydev.c Input: joydev - fix comment typo 2022-09-25 00:57:25 -07:00
Kconfig Input: tests - modular KUnit tests should not depend on KUNIT=y 2023-05-02 10:39:00 -07:00
Makefile Input: Add KUnit tests for some of the input core helper functions 2023-04-01 22:47:04 -07:00
matrix-keymap.c Input: add missing MODULE_DESCRIPTION() macros 2024-06-09 14:38:48 -07:00
mousedev.c
sparse-keymap.c
touchscreen.c Input: touchscreen - avoid bitwise vs logical OR warning 2021-10-15 22:22:54 -07:00
vivaldi-fmap.c Input: add missing MODULE_DESCRIPTION() macros 2024-06-09 14:38:48 -07:00