kconfig: drivers: counter: Remove redundant COUNTER deps.

These symbols appear within an 'if COUNTER' (in
drivers/counter/Kconfig).

'if FOO' is just shorthand for adding 'depends on FOO' to each item
within the 'if'. Dependencies on menus work similarly. There are no
"conditional includes" in Kconfig, so 'if FOO' has no special meaning
around a source. Conditional includes wouldn't be possible, because an
if condition could include (directly or indirectly) forward references
to symbols not defined yet.

Tip: When adding a symbol, check its dependencies in the menuconfig
('ninja menuconfig', then / to jump to the symbol). The menuconfig also
shows how the file with the symbol got included, so if you see
duplicated dependencies, it's easy to hunt down where they come from.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
This commit is contained in:
Ulf Magnusson 2019-03-07 05:28:01 +01:00 committed by Anas Nashif
commit 92a1f2ca72
2 changed files with 3 additions and 3 deletions

View file

@ -7,7 +7,7 @@
config COUNTER_IMX_EPIT
bool "IMX EPIT driver"
depends on COUNTER && HAS_IMX_EPIT
depends on HAS_IMX_EPIT
help
Enable the IMX EPIT driver.

View file

@ -8,7 +8,7 @@
config AON_COUNTER_QMSI
bool "AON counter driver"
depends on COUNTER && QMSI
depends on QMSI
help
Enable support for AON counter.
@ -21,7 +21,7 @@ config AON_COUNTER_QMSI_DEV_NAME
config AON_TIMER_QMSI
bool "AON periodic timer driver"
depends on COUNTER && QMSI
depends on QMSI
help
Enable support for AON periodic timer.