kconfig: Document 'if' flattening logic
authorUlf Magnusson <ulfalizer@gmail.com>
Sun, 14 Jan 2018 14:49:26 +0000 (15:49 +0100)
committerChristian Lamparter <chunkeey@gmail.com>
Sun, 10 Feb 2019 20:54:36 +0000 (21:54 +0100)
commit208f6c0ba32f016890408ba55155be9de94c66f8
tree9f94908146134de5876bb16e0041a670537382f6
parent82b30c13e001113c9df51fcbfbde94bce1183d29
kconfig: Document 'if' flattening logic

It is not obvious that this might refer to an 'if', making the code
pretty cryptic:

if (menu->list && (!menu->prompt || !menu->prompt->text)) {

Kconfig keeps the 'if' menu nodes even after flattening. Reflect that in
the example to be accurate.

No functional changes. Only comments added.

Signed-off-by: Ulf Magnusson <ulfalizer@gmail.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
config/menu.c