diff options
author | Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> | 2023-01-28 02:11:11 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-01-30 19:56:41 +0300 |
commit | 31e9273912bf5e4c23a876b5dfe0760fbecde92c (patch) | |
tree | c7bb0a82d37af43636957b7b5bb1f9f8fd6ced27 /include/sound | |
parent | fdfa3661f830c98fb0f6380c3876fae33bc83b1d (diff) | |
download | linux-31e9273912bf5e4c23a876b5dfe0760fbecde92c.tar.xz |
ASoC: topology: Use unload() op directly
struct snd_soc_dobj only needs pointer to the unload function, instead
however, there is pointer to all topology operations. Change code to use
the function pointer instead of pointer to structure containing all
operations.
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Link: https://lore.kernel.org/r/20230127231111.937721-12-amadeuszx.slawinski@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/soc-topology.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sound/soc-topology.h b/include/sound/soc-topology.h index b4b896f83b94..f055c6917f6c 100644 --- a/include/sound/soc-topology.h +++ b/include/sound/soc-topology.h @@ -62,7 +62,7 @@ struct snd_soc_dobj { enum snd_soc_dobj_type type; unsigned int index; /* objects can belong in different groups */ struct list_head list; - struct snd_soc_tplg_ops *ops; + int (*unload)(struct snd_soc_component *comp, struct snd_soc_dobj *dobj); union { struct snd_soc_dobj_control control; struct snd_soc_dobj_widget widget; |