kconfig: introduce choice_set_value() helper
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 11 Jun 2024 17:55:12 +0000 (02:55 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 15 Jul 2024 16:08:36 +0000 (01:08 +0900)
commitbd988e7cb84a7f27e8ec100c5f68498b7d4fa69c
treed7ff3dbe1398fa1c42fc10caa385088f836aa72d
parentdfe8e56fc604a6000550174d1002c6076efd8003
kconfig: introduce choice_set_value() helper

Currently, sym_set_tristate_value() is used to set 'y' to a choice
member, which is confusing because it not only sets 'y' to the given
symbol but also tweaks flags of other symbols as a side effect.

Add a dedicated function for setting the value of the given choice.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/conf.c
scripts/kconfig/lkc_proto.h
scripts/kconfig/mconf.c
scripts/kconfig/nconf.c
scripts/kconfig/symbol.c