mfd: qnap-mcu: Convert to guard(mutex) in qnap_mcu_exec
authorHeiko Stuebner <heiko@sntech.de>
Mon, 4 Aug 2025 13:07:25 +0000 (15:07 +0200)
committerLee Jones <lee@kernel.org>
Wed, 1 Oct 2025 09:28:15 +0000 (10:28 +0100)
commit21c5ffb4211203de0a91de8a1c4a329e508a2ffb
tree2bccd2156585901933e74ca722e5013e1fb5bf7c
parentbf2de43060d528e52e372c63182a94b95c80d305
mfd: qnap-mcu: Convert to guard(mutex) in qnap_mcu_exec

guard() makes sure that the mutex gets unlocked when the function returns
and thus removes the need for unlock gotos or similar mechanisms and
therefore allows for a simpler function structure.

So convert the qnap_mcu_exec function to use it.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20250804130726.3180806-4-heiko@sntech.de
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/qnap-mcu.c