mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
ASoC: soc-component: rename snd_soc_component_async_complete()
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 <kuninori.morimoto.gx@renesas.com> Reviewed-by: Alvin Šipraga <alvin.sipraga@analog.com> Link: https://patch.msgid.link/877bjlyokw.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
1fec554d55
commit
19224d29ff
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user