Commit 0f3dd4e0 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Mark Brown

ASoC: ti: rename CONFIG_SND_SOC_DM365_VOICE_CODEC_MODULE

Kconfig generates include/generated/autoconf.h to make CONFIG options
available to the pre-processor. Symbols with the value 'm' are suffixed
with '_MODULE'

Here is a conflict; CONFIG_FOO=m results in '#define CONFIG_FOO_MODULE 1',
but CONFIG_FOO_MODULE=y also results in the same define.

Also, CONFIG options that end with '_MODULE' confuse the Kconfig/fixdep
interaction; fixdep always assumes CONFIG_FOO_MODULE comes from
CONFIG_FOO=m, so the dependency is not properly tracked for symbols
that end with '_MODULE'.

For these reasons, CONFIG options that end with '_MODULE' should be
avoided in general. (I am planning on adding a check in Kconfig.)

This is the only case in the current kernel.

The new option name was suggested by Péter Ujfalusi. [1]

[1] https://lore.kernel.org/all/d9e777dc-d274-92ee-4d77-711bfd553611@gmail.com/

Fixes: 147162f5 ("ASoC: ti: fix SND_SOC_DM365_VOICE_CODEC dependencies")
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
Acked-by: default avatarPeter Ujfalusi <peter.ujfalusi@gmail.com>
Link: https://lore.kernel.org/r/20210901164009.1546967-1-masahiroy@kernel.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 6ade849e
...@@ -212,7 +212,7 @@ config SND_SOC_DM365_VOICE_CODEC ...@@ -212,7 +212,7 @@ config SND_SOC_DM365_VOICE_CODEC
Say Y if you want to add support for SoC On-chip voice codec Say Y if you want to add support for SoC On-chip voice codec
endchoice endchoice
config SND_SOC_DM365_VOICE_CODEC_MODULE config SND_SOC_DM365_SELECT_VOICE_CODECS
def_tristate y def_tristate y
depends on SND_SOC_DM365_VOICE_CODEC && SND_SOC depends on SND_SOC_DM365_VOICE_CODEC && SND_SOC
select MFD_DAVINCI_VOICECODEC select MFD_DAVINCI_VOICECODEC
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment