staging: greybus: audio_helper: Use snd_ctl_remove_id()
authorTakashi Iwai <tiwai@suse.de>
Tue, 18 Jul 2023 14:12:55 +0000 (16:12 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 20 Jul 2023 08:00:39 +0000 (10:00 +0200)
commit6eca69147542686a412b2657c0fd74bc4a38cc44
treedb8bfc65098886858dfb035a49a1a34b5e225077
parentd4e99962d16ce60ac9ecf995489dc60d7854f1bd
staging: greybus: audio_helper: Use snd_ctl_remove_id()

Use the standard snd_ctl_remove_id() helper function instead of open
code.  This allows us to reduce the manual card->rwsem lock in the
caller side.

Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Johan Hovold <johan@kernel.org>
Cc: Alex Elder <elder@kernel.org>
Cc: greybus-dev@lists.linaro.org
Link: https://lore.kernel.org/r/20230718141304.1032-3-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
drivers/staging/greybus/audio_helper.c