[PATCH v2 0/4] ASoC: stm: Use guard() for mutex & spin locks
phucduc.bui at gmail.com
phucduc.bui at gmail.com
Fri May 15 04:24:54 PDT 2026
From: bui duc phuc <phucduc.bui at gmail.com>
Hi all,
This series converts mutex and spinlock handling in the STM drivers
to use guard() helpers.
The changes are code cleanup only and should have no functional impact.
Best regards,
Phuc
Changes in v2:
Replace break statements inside scoped_guard() blocks with return 0
in stm32_i2s trigger handling, since break only exits the implicit
scoped_guard loop rather than the function switch block.
bui duc phuc (4):
ASoC: stm: stm32_adfsdm: Use guard() for mutex locks
ASoC: stm: stm32_i2s: Use guard() for spin locks
ASoC: stm: stm32_sai_sub: Use guard() for mutex & spin locks
ASoC: stm: stm32_spdifrx: Use guard() for spin locks
sound/soc/stm/stm32_adfsdm.c | 10 ++----
sound/soc/stm/stm32_i2s.c | 67 ++++++++++++++++-------------------
sound/soc/stm/stm32_sai_sub.c | 29 ++++++---------
sound/soc/stm/stm32_spdifrx.c | 44 +++++++++--------------
4 files changed, 60 insertions(+), 90 deletions(-)
--
2.43.0
More information about the linux-arm-kernel
mailing list