summaryrefslogtreecommitdiff
path: root/scripts/kconfig/conf.c
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2024-06-11 20:55:12 +0300
committerMasahiro Yamada <masahiroy@kernel.org>2024-07-15 19:08:36 +0300
commitbd988e7cb84a7f27e8ec100c5f68498b7d4fa69c (patch)
treed7ff3dbe1398fa1c42fc10caa385088f836aa72d /scripts/kconfig/conf.c
parentdfe8e56fc604a6000550174d1002c6076efd8003 (diff)
downloadlinux-bd988e7cb84a7f27e8ec100c5f68498b7d4fa69c.tar.xz
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>
Diffstat (limited to 'scripts/kconfig/conf.c')
-rw-r--r--scripts/kconfig/conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c
index cf8193fc00fc..5dbdd9459f21 100644
--- a/scripts/kconfig/conf.c
+++ b/scripts/kconfig/conf.c
@@ -507,7 +507,7 @@ static void conf_choice(struct menu *menu)
print_help(child);
continue;
}
- sym_set_tristate_value(child->sym, yes);
+ choice_set_value(menu, child->sym);
return;
}
}