summaryrefslogtreecommitdiff
path: root/sound/core/rawmidi_compat.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2024-02-27 09:52:50 +0100
committerTakashi Iwai <tiwai@suse.de>2024-02-28 15:01:21 +0100
commit471be437be779a028040afc151972e3125b5b23c (patch)
tree810286c732b2b3c99f7cafa4c68945618656ebcb /sound/core/rawmidi_compat.c
parent2dc49651fca1e8ecd6c177cd9b576a26761a5cdf (diff)
ALSA: control: Use guard() for locking
We can simplify the code gracefully with new guard() macro and co for automatic cleanup of locks. The lops calls under multiple rwsems are factored out as a simple macro, so that it can be called easily from snd_ctl_dev_register() and snd_ctl_dev_disconnect(). There are a few remaining explicit rwsem and spinlock calls, and those are the places where the lock downgrade happens or where the temporary unlock/relocking happens -- which guard() doens't cover well yet. Only the code refactoring, and no functional changes. Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://lore.kernel.org/r/20240227085306.9764-9-tiwai@suse.de
Diffstat (limited to 'sound/core/rawmidi_compat.c')
0 files changed, 0 insertions, 0 deletions