]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
HID: playstation: Simplify locking with guard() and scoped_guard()
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Tue, 24 Jun 2025 21:56:47 +0000 (00:56 +0300)
committerJiri Kosina <jkosina@suse.com>
Wed, 17 Sep 2025 09:33:43 +0000 (11:33 +0200)
commita38d070ffe338710037f6a45767542ce249c61a0
tree9b3a0b95dfbbbdcdb20366d7d12230f95c626235
parent6c6af4c4dfd3ca734b3507361476ec1774dca477
HID: playstation: Simplify locking with guard() and scoped_guard()

Use guard() and scoped_guard() infrastructure instead of explicitly
acquiring and releasing spinlocks and mutexes to simplify the code and
ensure that all locks are released properly.

Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Reviewed-by: Benjamin Tissoires <bentiss@kernel.org>
Tested-by: Benjamin Tissoires <bentiss@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-playstation.c