Skip to content
Snippets Groups Projects
Commit 1f31be9e authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

kconfig: loosen the order of "visible" and "depends on" in menu entry


Currently, "visible" and "depends on", if defined in a menu entry,
must appear in that order.

The real example is in drivers/media/tuners/Kconfig:

  menu "Customize TV tuners"
          visible if <expr1>
          depends on <expr2>

... is fine, but you cannot change the property order like this:

  menu "Customize TV tuners"
          depends on <expr2>
          visible if <expr1>

Kconfig does not require a specific order of properties. In this case,
menu_add_visibility(() and menu_add_dep() are orthogonal.

Loosen this unreasonable restriction.

Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent 94d4e1b6
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment