kconfig: gconf: show checkbox for choice correctly
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 7 May 2024 15:14:50 +0000 (00:14 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Tue, 14 May 2024 14:36:19 +0000 (23:36 +0900)
commit6ba750ddebc90aa97be376e05bc093371934ddce
tree6350f8684d6c43f3bd96af2661fb6bb1257ae25c
parentb4f944ba521485125206640f6e66dce3f350ad6b
kconfig: gconf: show checkbox for choice correctly

Currently, bool choices have a checkbox, but tristate choices do not.
It is opposite.

Bool choices should not have a checkbox, as they are fixed to 'y' since
commit 6a1215888e23 ("kconfig: remove 'optional' property support").
Tristate choices, however, should have a checkbox to allow users to
toggle the value.

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