]> exis.tech > repos - linux.git/commit
ASoC: mediatek: Use guard() for mutex & spin locks
authorMark Brown <broonie@kernel.org>
Thu, 11 Jun 2026 19:59:21 +0000 (20:59 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 11 Jun 2026 19:59:21 +0000 (20:59 +0100)
commitf07dde7074252653a17905b45bf92150029a47ae
tree223d1adfeaac51844965a64050148d39bd49e6be
parent5542791d509d07d5e2e9d089f6e0b805c755eee8
parent62bde3771c3b83587a4549c92111d141954806c4
ASoC: mediatek: Use guard() for mutex & spin locks

bui duc phuc <phucduc.bui@gmail.com> says:

This series converts mutex and spinlock handling in Mediatek ASoC drivers
to use guard() helpers.

Most patches are straightforward conversions to guard() helpers with no
functional change intended.

One exception is mt8192-afe-gpio, where the mutex release point moves from
immediately before dev_warn() to scope exit. However, the affected path
only emits a warning and immediately returns -EINVAL, without any further
processing.

Compile-tested only.

Link: https://patch.msgid.link/20260610102021.83273-1-phucduc.bui@gmail.com
sound/soc/amd/yc/acp6x-mach.c