Skip to content
Permalink
Browse files

drivers: usb: Kconfig: Remove redundant 'default n' properties

Bool symbols implicitly default to 'n'.

A 'default n' can make sense e.g. in a Kconfig.defconfig file, if you
want to override a 'default y' on the base definition of the symbol. It
isn't used like that on any of these symbols though, and is
inconsistent.

This will make the auto-generated Kconfig documentation have "No
defaults. Implicitly defaults to n." as well, which is clearer than
'default n if ...'

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
  • Loading branch information...
Ulf Magnusson authored and nashif committed Jun 27, 2018
1 parent cddca70 commit 7cdd946d2d17fad5a54224bc9bb93d3edcbea7b6
Showing with 0 additions and 9 deletions.
  1. +0 −1 drivers/usb/Kconfig
  2. +0 −8 drivers/usb/device/Kconfig
@@ -8,7 +8,6 @@

menuconfig USB
bool "USB"
default n
help
Enable USB drivers.

@@ -10,13 +10,11 @@ if USB

config USB_DEVICE_DRIVER
bool
default n

config USB_DW
bool
prompt "Designware USB Device Controller Driver"
select USB_DEVICE_DRIVER
default n
help
Designware USB Device Controller Driver.

@@ -30,7 +28,6 @@ config USB_DW_USB_2_0
bool
prompt "DesignWare Controller and PHY support for USB specification 2.0"
depends on USB_DW
default n
help
Indicates whether or not USB specification version 2.0 is supported

@@ -43,7 +40,6 @@ config USB_DC_STM32
select USE_STM32_HAL_PCD
select USE_STM32_HAL_PCD_EX
select HAS_DTS_USB
default n
help
Enable USB support on the STM32 F0, F1, F3, F4, L0 and L4 family of
processors.
@@ -53,7 +49,6 @@ config USB_DC_SAM0
prompt "SAM0 series USB Device Controller driver"
depends on SOC_FAMILY_SAM0
select USB_DEVICE_DRIVER
default n
help
SAM0 family USB device controller Driver.

@@ -63,15 +58,13 @@ config USB_NRF52840
depends on SOC_NRF52840
select USB_DEVICE_DRIVER
select HAS_DTS_USB
default n
help
nRF52840 USB Device Controller Driver

config USB_KINETIS
bool
prompt "Kinetis USB Device Controller Driver"
select USB_DEVICE_DRIVER
default n
help
Kinetis USB Device Controller Driver.

@@ -98,7 +91,6 @@ config SYS_LOG_USB_DRIVER_LEVEL
config USB_DC_STM32_DISCONN_ENABLE
bool
depends on USB_DC_STM32
default n
help
Say Y if your board uses USB DISCONNECT pin to enable the
pull-up resistor on USB DP.

0 comments on commit 7cdd946

Please sign in to comment.
You can’t perform that action at this time.