diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2015-03-15 10:27:20 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-03-16 11:40:24 +0000 |
commit | 6b5b042d4c675cb9d3446a1cdcaca98e715ba812 (patch) | |
tree | 7ac71e082f82ef4e32b3e4b2e418ede1e6075576 /sound | |
parent | c517d838eb7d07bbe9507871fab3931deccff539 (diff) | |
download | linux-6b5b042d4c675cb9d3446a1cdcaca98e715ba812.tar.bz2 |
ASoC: Make snd_soc_dapm_kcontrol_codec() inline
snd_soc_dapm_kcontrol_codec() is a extremely simple function and inlining it
typically results in less code than necessary for calling the non-inlined
version of the function.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/soc-dapm.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index b6f88202b8c9..95337c832258 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -473,16 +473,6 @@ struct snd_soc_dapm_context *snd_soc_dapm_kcontrol_dapm( } EXPORT_SYMBOL_GPL(snd_soc_dapm_kcontrol_dapm); -/** - * snd_soc_dapm_kcontrol_codec() - Returns the codec associated to a kcontrol - * @kcontrol: The kcontrol - */ -struct snd_soc_codec *snd_soc_dapm_kcontrol_codec(struct snd_kcontrol *kcontrol) -{ - return snd_soc_dapm_to_codec(snd_soc_dapm_kcontrol_dapm(kcontrol)); -} -EXPORT_SYMBOL_GPL(snd_soc_dapm_kcontrol_codec); - static void dapm_reset(struct snd_soc_card *card) { struct snd_soc_dapm_widget *w; |