kconfig: pwm: Remove redundant deps. and clean up a bit

- Remove redundant dependencies on the PWM symbol (which show up as
   PWM && PWM in the documentation). The 'source's in
   drivers/pwm/Kconfig are already within an 'if PWM' block.

 - Turn some repeated 'depends on FOO' into 'if FOO' blocks.

 - Turn some 'if FOO's that surround a single symbol into
   'depends on FOO'.

'if FOO' is equivalent to adding a 'depends on FOO' to each symbol
within the 'if'.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
This commit is contained in:
Ulf Magnusson 2019-02-26 18:00:26 +01:00 committed by Maureen Helm
commit f46e391f06
9 changed files with 13 additions and 34 deletions

View file

@ -9,7 +9,7 @@
menuconfig PWM_NRF5_SW
bool "Nordic Semiconductor nRF5x series S/W PWM"
default y if !PWM_NRFX
depends on PWM && SOC_FAMILY_NRF
depends on SOC_FAMILY_NRF
help
Enable driver to utilize PWM on the Nordic Semiconductor nRF5x series.
This implementation provides up to 3 pins using one HF timer, two PPI
@ -43,4 +43,4 @@ config PWM_NRF5_SW_0_CLOCK_PRESCALER
8: 62500 Hz
9: 31250 Hz
endif
endif # PWM_NRF5_SW