]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Input: mk712 - use guard notation when acquiring spinlock
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 1 Sep 2024 23:11:38 +0000 (16:11 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 25 Mar 2026 04:14:55 +0000 (21:14 -0700)
commit7e1e5722e859e6624c9509a55d1f302b44d1853b
tree59059aba40db291810c85fd569f338c4e656951f
parent8e4ae01d84cd0879636c333e0707c86074b00405
Input: mk712 - use guard notation when acquiring spinlock

Using guard notation makes the code more compact and error handling
more robust by ensuring that locks are released in all code paths
when control leaves critical section.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/mk712.c