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>
Showing
- scripts/kconfig/conf.c 1 addition, 1 deletionscripts/kconfig/conf.c
- scripts/kconfig/lkc_proto.h 1 addition, 0 deletionsscripts/kconfig/lkc_proto.h
- scripts/kconfig/mconf.c 1 addition, 1 deletionscripts/kconfig/mconf.c
- scripts/kconfig/nconf.c 1 addition, 1 deletionscripts/kconfig/nconf.c
- scripts/kconfig/symbol.c 43 additions, 19 deletionsscripts/kconfig/symbol.c
Please register or sign in to comment