summaryrefslogtreecommitdiff
path: root/include/linux/root_dev.h
diff options
context:
space:
mode:
authorbui duc phuc <phucduc.bui@gmail.com>2026-06-10 17:20:16 +0700
committerMark Brown <broonie@kernel.org>2026-06-11 20:59:16 +0100
commit14edf39daefbf7aa689ea2bb8811a85c498e0ff6 (patch)
tree6be536b224442a0f93492d6be7d4d1ec2ea941eb /include/linux/root_dev.h
parentcc29c31e87fccefefe744017368dd7a3d2f8bd5f (diff)
ASoC: mediatek: mt8192: mt8192-afe-gpio: Use guard() for mutex locks
Convert the explicit mutex_lock()/mutex_unlock() pair to guard(mutex) to simplify the locking logic and automatically release the mutex on all exit paths. This changes the mutex release point from immediately before dev_warn() to automatic cleanup at scope exit. However, the affected path only emits a warning and immediately returns -EINVAL, without any further processing. Signed-off-by: bui duc phuc <phucduc.bui@gmail.com> Link: https://patch.msgid.link/20260610102021.83273-6-phucduc.bui@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/root_dev.h')
0 files changed, 0 insertions, 0 deletions