]> www.infradead.org Git - users/willy/linux.git/commit
kconfig: use menu_list_for_each_sym() in sym_choice_default()
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 18 Jun 2024 10:35:25 +0000 (19:35 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 15 Jul 2024 16:08:37 +0000 (01:08 +0900)
commit6e6d0e917a9714297614b41fbbfde1625249e197
tree1320a4dc4f3ae5ac0b2e544cba1906c77b5b1fdf
parente8fcd915e3c07a2ef90341fa307a224cfd5d865d
kconfig: use menu_list_for_each_sym() in sym_choice_default()

Choices and their members are associated via the P_CHOICE property.

Currently, sym_get_choice_prop() and expr_list_for_each_sym() are
used to iterate on choice members.

Replace them with menu_for_each_sub_entry(), which achieves the same
without relying on P_CHOICE.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/symbol.c