summaryrefslogtreecommitdiff
path: root/scripts/kconfig/lkc.h
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2024-06-18 13:35:22 +0300
committerMasahiro Yamada <masahiroy@kernel.org>2024-07-15 19:08:37 +0300
commitbd0db4b6ad03abb39708e3c09d9d275973052b6f (patch)
treead43a4148ea5037b0d13086fba03756b1a9b4a70 /scripts/kconfig/lkc.h
parentf79dc03fe68c79d388908182e68d702f7f1786bc (diff)
downloadlinux-bd0db4b6ad03abb39708e3c09d9d275973052b6f.tar.xz
kconfig: remove sym_get_choice_value()
sym_get_choice_value(menu->sym) is equivalent to sym_calc_choice(menu). Convert all call sites of sym_get_choice_value() and then remove it. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/kconfig/lkc.h')
-rw-r--r--scripts/kconfig/lkc.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/kconfig/lkc.h b/scripts/kconfig/lkc.h
index bdd37a16b040..d820272a85fb 100644
--- a/scripts/kconfig/lkc.h
+++ b/scripts/kconfig/lkc.h
@@ -110,6 +110,7 @@ void menu_get_ext_help(struct menu *menu, struct gstr *help);
/* symbol.c */
void sym_clear_all_valid(void);
struct symbol *sym_choice_default(struct symbol *sym);
+struct symbol *sym_calc_choice(struct menu *choice);
struct property *sym_get_range_prop(struct symbol *sym);
const char *sym_get_string_default(struct symbol *sym);
struct symbol *sym_check_deps(struct symbol *sym);
@@ -120,8 +121,6 @@ static inline tristate sym_get_tristate_value(struct symbol *sym)
return sym->curr.tri;
}
-struct symbol *sym_get_choice_value(struct symbol *sym);
-
static inline bool sym_is_choice(struct symbol *sym)
{
/* A choice is a symbol with no name */