From 19224d29ffb4e341400cbfcafe07b19a2af97b72 Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Wed, 14 Oct 2026 02:59:28 +0000 Subject: [PATCH] ASoC: soc-component: rename snd_soc_component_async_complete() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit snd_soc_component_async_complete() is regmap related function. Let's add _regmap_ on function name. It renames function name - snd_soc_component_async_complete() + snd_soc_component_regmap_async_complete() Signed-off-by: Kuninori Morimoto Reviewed-by: Alvin Šipraga Link: https://patch.msgid.link/877bjlyokw.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown --- include/sound/soc-component.h | 3 ++- sound/soc/soc-component.c | 28 ++++++++++++++-------------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/include/sound/soc-component.h b/include/sound/soc-component.h index c287ec6f458e..0839f137a77e 100644 --- a/include/sound/soc-component.h +++ b/include/sound/soc-component.h @@ -305,7 +305,6 @@ int snd_soc_component_update_bits(struct snd_soc_component *component, int snd_soc_component_update_bits_async(struct snd_soc_component *component, unsigned int reg, unsigned int mask, unsigned int val); -void snd_soc_component_async_complete(struct snd_soc_component *component); int snd_soc_component_test_bits(struct snd_soc_component *component, unsigned int reg, unsigned int mask, unsigned int value); @@ -336,6 +335,7 @@ int snd_soc_component_set_bias_level(struct snd_soc_component *component, int snd_soc_component_regmap_val_bytes(struct snd_soc_component *component); int snd_soc_component_regmap_cache_sync(struct snd_soc_component *component); +void snd_soc_component_regmap_async_complete(struct snd_soc_component *component); #ifdef CONFIG_REGMAP void snd_soc_component_init_regmap(struct snd_soc_component *component, struct regmap *regmap); @@ -446,6 +446,7 @@ void snd_soc_pcm_component_delay(struct snd_pcm_substream *substream, /* REMOVE ME */ #define snd_soc_component_cache_sync snd_soc_component_regmap_cache_sync +#define snd_soc_component_async_complete snd_soc_component_regmap_async_complete #define snd_soc_lookup_component_nolocked snd_soc_component_lookup_nolock #define snd_soc_lookup_component snd_soc_component_lookup #define snd_soc_lookup_component_by_name snd_soc_component_lookup_by_name diff --git a/sound/soc/soc-component.c b/sound/soc/soc-component.c index 4c2d2dc62f86..07d709385582 100644 --- a/sound/soc/soc-component.c +++ b/sound/soc/soc-component.c @@ -418,6 +418,20 @@ int snd_soc_component_regmap_cache_sync(struct snd_soc_component *component) } EXPORT_SYMBOL_GPL(snd_soc_component_regmap_cache_sync); +/** + * snd_soc_component_regmap_async_complete() - Ensure asynchronous I/O has completed + * @component: Component for which to wait + * + * This function blocks until all asynchronous I/O which has previously been + * scheduled using snd_soc_component_update_bits_async() has completed. + */ +void snd_soc_component_regmap_async_complete(struct snd_soc_component *component) +{ + if (component->regmap) + regmap_async_complete(component->regmap); +} +EXPORT_SYMBOL_GPL(snd_soc_component_regmap_async_complete); + #ifdef CONFIG_REGMAP /** @@ -922,20 +936,6 @@ int snd_soc_component_write_field(struct snd_soc_component *component, } EXPORT_SYMBOL_GPL(snd_soc_component_write_field); -/** - * snd_soc_component_async_complete() - Ensure asynchronous I/O has completed - * @component: Component for which to wait - * - * This function blocks until all asynchronous I/O which has previously been - * scheduled using snd_soc_component_update_bits_async() has completed. - */ -void snd_soc_component_async_complete(struct snd_soc_component *component) -{ - if (component->regmap) - regmap_async_complete(component->regmap); -} -EXPORT_SYMBOL_GPL(snd_soc_component_async_complete); - /** * snd_soc_component_test_bits - Test register for change * @component: component