kconfig: Replace defconfig singe-symbol 'if's with 'depends on'

Same deal as in commit eddd98f ("kconfig: Replace some single-symbol
'if's with 'depends on'"), for all symbols defined within defconfig
files. See that commit for an explanation.

Maybe 'if's were used originally to mirror the 'if's in the main Kconfig
files, and then it got copied around by people assuming 'if' must work
differently from 'depends on'. It doesn't match in every spot at least.
Better to keep it simple and just consistently use 'depends on' when
it's a single symbol/choice I think. Helps reinforce that 'if' isn't
magic too.

Verified by printing all Kconfig menu nodes (symbols, choices, menus,
etc.) before and after the change and diffing (should show no
difference).

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
This commit is contained in:
Ulf Magnusson 2020-02-10 04:18:50 +01:00 committed by Kumar Gala
commit a42a42cd5a
272 changed files with 752 additions and 2949 deletions

View file

@ -14,34 +14,22 @@ config SOC_SERIES
default "stm32l4"
if GPIO_STM32
# GPIO ports A, B and C are set in ../common/Kconfig.defconfig.series
config GPIO_STM32_PORTH
default y
endif # GPIO_STM32
if I2C_STM32
depends on GPIO_STM32
config I2C_STM32_V2
default y
endif # I2C_STM32
if ENTROPY_GENERATOR
depends on I2C_STM32
config ENTROPY_STM32_RNG
default y
endif # ENTROPY_GENERATOR
if DMA_STM32
depends on ENTROPY_GENERATOR
config DMA_STM32_V2
default y
endif # DMA
depends on DMA_STM32
endif # SOC_SERIES_STM32L4X

View file

@ -12,11 +12,8 @@ config SOC
config NUM_IRQS
default 83
if GPIO_STM32
config GPIO_STM32_PORTH
default y
endif # GPIO_STM32
depends on GPIO_STM32
endif # SOC_STM32L432XX