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

@ -12,19 +12,13 @@ config CORTEX_M_SYSTICK
default n if STM32_LPTIM_TIMER
default y if !STM32_LPTIM_TIMER
if CLOCK_CONTROL
config CLOCK_CONTROL_STM32_CUBE
default y
endif # CLOCK_CONTROL
if SERIAL
depends on CLOCK_CONTROL
config UART_STM32
default y
endif # SERIAL
depends on SERIAL
if GPIO
@ -42,12 +36,9 @@ config GPIO_STM32_PORTC
endif # GPIO
if PINMUX
config PINMUX_STM32
default y
endif # PINMUX
depends on PINMUX
if WATCHDOG
@ -59,54 +50,33 @@ config WWDG_STM32
endif # WATCHDOG
if PWM
config PWM_STM32
default y
endif # PWM
if SPI
depends on PWM
config SPI_STM32
default y
endif # SPI
if I2C
depends on SPI
config I2C_STM32
default y
endif
if USB
depends on I2C
config USB_DC_STM32
default y
endif # USB
if COUNTER
depends on USB
config COUNTER_RTC_STM32
default y
endif # COUNTER
if CAN
depends on COUNTER
config CAN_STM32
default y
endif
if ADC
depends on CAN
config ADC_STM32
default y
endif # ADC
depends on ADC
if DMA