]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
HID: playstation: Switch to scoped_guard() in {dualsense|dualshock4}_output_worker()
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Mon, 22 Sep 2025 21:29:42 +0000 (00:29 +0300)
committerJiri Kosina <jkosina@suse.com>
Wed, 24 Sep 2025 10:55:47 +0000 (12:55 +0200)
commit8aa035a8407f6b6e999afa33839e38267fdc8790
tree4f852fe2b6dd93f0646d9610663c84f9f1b8dc15
parent3969f77f5dd5c69d513a33f350128e61e0e1ab00
HID: playstation: Switch to scoped_guard() in {dualsense|dualshock4}_output_worker()

Those functions were initially excepted from using the scoped_guard()
infrastructure as they contain too many long statements, while adding
yet another level of indentation seemed to lower readability without
bringing an immediate benefit.

However, consistency should be more important, hence do the switch and
get rid of the remaining explicit acquires & releases of the spinlocks.

Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-playstation.c