]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: hda/cs35l41: Clean up runtime PM with guard()
authorTakashi Iwai <tiwai@suse.de>
Tue, 16 Dec 2025 14:11:46 +0000 (15:11 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 23 Dec 2025 09:51:57 +0000 (10:51 +0100)
commite38bdd30708b8bad577b07de5fdb2baa1cae8527
tree1b38a4421e7e226bcf0049ee05ead31d6b04f271
parent5de5db35350d9c4def1de2ae273e224a4eee5ed1
ALSA: hda/cs35l41: Clean up runtime PM with guard()

Replace the manual pm_runtime_get_sync() and
pm_runtime_put_autosuspend() calls with the new
guard(pm_runtime_active_auto) for code simplification.

Along with this change, the former scoped_guard(mutex) can be set back
to the plain guard(mutex), and the indent level is taken back, too.

Merely code cleanups, and no functional changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20251216141154.172218-2-tiwai@suse.de
sound/hda/codecs/side-codecs/cs35l41_hda.c