]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Input: use guard notation in input core
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 7 Nov 2024 07:15:35 +0000 (23:15 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 24 Dec 2024 06:53:58 +0000 (22:53 -0800)
commit21d8dd0daf4cf4627a0c4b813e0f91bcda67598a
tree249f3732758bd23e3da09ca1866ddbb49a9aa192
parentf951e94247e2e0cce9b28526b7e25ad95785e8c1
Input: use guard notation in input core

Switch input core to use "guard" notation when acquiring spinlocks and
mutexes to simplify the code and ensure that locks are automatically
released when control leaves critical section.

Link: https://lore.kernel.org/r/20241107071538.195340-9-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/input.c