diff options
Diffstat (limited to 'kconfiglib.py')
| -rw-r--r-- | kconfiglib.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index 1977047..07b9f81 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -3627,11 +3627,9 @@ def _get_visibility(sc): # Choice symbols with m visibility are not visible in y mode return 0 - # Promote m to y if we're dealing with a non-tristate. This might lead to - # infinite recursion if something really weird is done with MODULES, but - # it's not a problem in practice. - if vis == 1 and \ - (sc.orig_type != TRISTATE or not sc.kconfig.modules.tri_value): + # Promote m to y if we're dealing with a non-tristate (possibly due to + # modules being disabled) + if vis == 1 and sc.type != TRISTATE: return 2 return vis |
