summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-vivaldi-common.c
diff options
context:
space:
mode:
authorVicki Pfau <vi@endrift.com>2023-12-20 06:38:33 +0300
committerJiri Kosina <jkosina@suse.com>2024-01-02 13:20:42 +0300
commit691ead124a0c35e56633dbb73e43711ff3db23ef (patch)
tree03332653e05ff4f6f234cfed15027cb902ebf7ea /drivers/hid/hid-vivaldi-common.c
parent917972636e8271c5691710ce5dcd66c2d3bd04f2 (diff)
downloadlinux-691ead124a0c35e56633dbb73e43711ff3db23ef.tar.xz
HID: hid-steam: Clean up locking
This cleans up the locking logic so that the spinlock is consistently used for access to a small handful of struct variables, and the mutex is exclusively and consistently used for ensuring that mutliple threads aren't trying to send/receive reports at the same time. Previously, only some report transactions were guarded by this mutex, potentially breaking atomicity. The mutex has been renamed to reflect this usage. Signed-off-by: Vicki Pfau <vi@endrift.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'drivers/hid/hid-vivaldi-common.c')
0 files changed, 0 insertions, 0 deletions