diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2020-09-23 10:29:39 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-09-23 18:47:59 +0100 |
commit | a3f18f82a2baf7b4fe434b96ad644a541e6c8c12 (patch) | |
tree | 45e370117fbfb4b2c23cc912400c3591e184167a /sound/soc/intel/boards/hda_dsp_common.h | |
parent | ASoC: cros_ec_codec: fix kconfig dependency warning for SND_SOC_CROS_EC_CODEC (diff) | |
download | linux-dev-a3f18f82a2baf7b4fe434b96ad644a541e6c8c12.tar.xz linux-dev-a3f18f82a2baf7b4fe434b96ad644a541e6c8c12.zip |
ASoC: Intel: hda_dsp_common: use static function in conditional block
cppcheck reports the following warning:
sound/soc/intel/boards/hda_dsp_common.c:17:0: style: The function
'hda_dsp_hdmi_pcm_handle' is never used. [unusedFunction]
Fix by moving to static inside compilation block.
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Jaska Uimonen <jaska.uimonen@intel.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20200923072939.3100468-1-kai.vehmanen@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/boards/hda_dsp_common.h')
-rw-r--r-- | sound/soc/intel/boards/hda_dsp_common.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/soc/intel/boards/hda_dsp_common.h b/sound/soc/intel/boards/hda_dsp_common.h index 727edd256962..ea4ae9285cf0 100644 --- a/sound/soc/intel/boards/hda_dsp_common.h +++ b/sound/soc/intel/boards/hda_dsp_common.h @@ -15,9 +15,6 @@ #include <sound/hda_i915.h> #include "../../codecs/hdac_hda.h" -struct snd_pcm *hda_dsp_hdmi_pcm_handle(struct snd_soc_card *card, - int hdmi_idx); - #if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC) int hda_dsp_hdmi_build_controls(struct snd_soc_card *card, struct snd_soc_component *comp); |