diff --git a/asoc/codecs/wcd938x/internal.h b/asoc/codecs/wcd938x/internal.h index 4811bd0f4a..71528c71d6 100644 --- a/asoc/codecs/wcd938x/internal.h +++ b/asoc/codecs/wcd938x/internal.h @@ -177,6 +177,4 @@ extern int wcd938x_mbhc_micb_adjust_voltage(struct snd_soc_component *component, extern int wcd938x_get_micb_vout_ctl_val(u32 micb_mv); extern int wcd938x_micbias_control(struct snd_soc_component *component, int micb_num, int req, bool is_dapm); -extern int wcd938x_info_create_codec_entry(struct snd_info_entry *codec_root, - struct snd_soc_component *component); #endif /* _WCD938X_INTERNAL_H */ diff --git a/asoc/codecs/wcd938x/wcd938x.h b/asoc/codecs/wcd938x/wcd938x.h new file mode 100644 index 0000000000..12b5f1a126 --- /dev/null +++ b/asoc/codecs/wcd938x/wcd938x.h @@ -0,0 +1,19 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * Copyright (c) 2018, The Linux Foundation. All rights reserved. + */ + +#ifndef _WCD938X_H +#define _WCD938X_H + +#ifdef CONFIG_SND_SOC_WCD938X +extern int wcd938x_info_create_codec_entry(struct snd_info_entry *codec_root, + struct snd_soc_component *component); +#else +extern int wcd938x_info_create_codec_entry(struct snd_info_entry *codec_root, + struct snd_soc_component *component) +{ + return 0; +} +#endif /* CONFIG_SND_SOC_WCD938X */ +#endif /* _WCD938X_H */