drivers: gpio: 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 ...'

Piggyback a missing 'source "drivers/gpio/Kconfig.imx"'. This file
wasn't included anywhere previously.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
This commit is contained in:
Ulf Magnusson 2018-06-27 13:03:35 +02:00 committed by Anas Nashif
commit f912dfebea
23 changed files with 2 additions and 94 deletions

View file

@ -9,7 +9,6 @@
menuconfig GPIO
bool
prompt "GPIO Drivers"
default n
help
Include GPIO drivers in system config
@ -79,4 +78,6 @@ source "drivers/gpio/Kconfig.sam"
source "drivers/gpio/Kconfig.sx1509b"
source "drivers/gpio/Kconfig.imx"
endif # GPIO

View file

@ -9,7 +9,6 @@
menuconfig GPIO_ALTERA_NIOS2
bool "Altera Nios-II PIO Controllers"
depends on GPIO && HAS_ALTERA_HAL
default n
help
Enable config options to support the PIO controllers
on Altera Nios-II family processors.
@ -20,7 +19,6 @@ if GPIO_ALTERA_NIOS2
config GPIO_ALTERA_NIOS2_OUTPUT
bool "Enable driver for Altera Nios-II PIO Output Port"
default n
help
Build the driver to utilize PIO controller Output Port.

View file

@ -9,7 +9,6 @@
menuconfig GPIO_ATMEL_SAM3
bool "Atmel SAM3 PIO Controllers"
depends on GPIO && SOC_SERIES_SAM3X
default n
help
Enable config options to support the PIO controllers
on Atmel SAM3 family processors.
@ -20,7 +19,6 @@ if GPIO_ATMEL_SAM3
config GPIO_ATMEL_SAM3_PORTA
bool "Enable driver for Atmel SAM3 PIO Port A"
default n
help
Build the driver to utilize PIO controller Port A.
@ -40,7 +38,6 @@ config GPIO_ATMEL_SAM3_PORTA_IRQ_PRI
config GPIO_ATMEL_SAM3_PORTB
bool "Enable driver for Atmel SAM3 PIO Port B"
default n
help
Build the driver to utilize PIO controller Port B.
@ -60,7 +57,6 @@ config GPIO_ATMEL_SAM3_PORTB_IRQ_PRI
config GPIO_ATMEL_SAM3_PORTC
bool "Enable driver for Atmel SAM3 PIO Port C"
default n
help
Build the driver to utilize PIO controller Port C.
@ -80,7 +76,6 @@ config GPIO_ATMEL_SAM3_PORTC_IRQ_PRI
config GPIO_ATMEL_SAM3_PORTD
bool "Enable driver for Atmel SAM3 PIO Port D"
default n
help
Build the driver to utilize PIO controller Port D.

View file

@ -5,7 +5,6 @@
menuconfig GPIO_CC2650
bool "TI CC2650 GPIO driver"
depends on GPIO && SOC_SERIES_CC2650
default n
help
Enable the GPIO driver on boards equipped with TI CC2650.

View file

@ -4,7 +4,6 @@
menuconfig GPIO_CC32XX
bool "TI CC32XX GPIO driver"
depends on GPIO && SOC_FAMILY_TISIMPLELINK
default n
help
Enable the GPIO driver on TI SimpleLink CC32xx boards
@ -13,7 +12,6 @@ if GPIO_CC32XX
config GPIO_CC32XX_A0
bool "GPIO block A0"
depends on GPIO_CC32XX
default n
help
Include support for the GPIO port A0.
@ -33,7 +31,6 @@ config GPIO_CC32XX_A0_IRQ_PRI
config GPIO_CC32XX_A1
bool "GPIO block A1"
depends on GPIO_CC32XX
default n
help
Include support for the GPIO port A1.
@ -53,7 +50,6 @@ config GPIO_CC32XX_A1_IRQ_PRI
config GPIO_CC32XX_A2
bool "GPIO block A2"
depends on GPIO_CC32XX
default n
help
Include support for the GPIO port A2.
@ -73,7 +69,6 @@ config GPIO_CC32XX_A2_IRQ_PRI
config GPIO_CC32XX_A3
bool "GPIO block A3"
depends on GPIO_CC32XX
default n
help
Include support for the GPIO port A3.

View file

@ -9,7 +9,6 @@
menuconfig GPIO_CMSDK_AHB
bool "ARM CMSDK (Cortex-M System Design Kit) AHB GPIO Controllers"
depends on GPIO && SOC_SERIES_BEETLE
default n
help
Enable config options to support the ARM CMSDK GPIO controllers.
@ -22,7 +21,6 @@ if GPIO_CMSDK_AHB
config GPIO_CMSDK_AHB_PORT0
bool "Enable driver for GPIO Port 0"
depends on GPIO_CMSDK_AHB
default n
help
Build the driver to utilize GPIO controller Port 0.
@ -45,7 +43,6 @@ config GPIO_CMSDK_AHB_PORT0_IRQ_PRI
config GPIO_CMSDK_AHB_PORT1
bool "Enable driver for GPIO Port 1"
depends on GPIO_CMSDK_AHB
default n
help
Build the driver to utilize GPIO controller Port 1.
@ -68,7 +65,6 @@ config GPIO_CMSDK_AHB_PORT1_IRQ_PRI
config GPIO_CMSDK_AHB_PORT2
bool "Enable driver for GPIO Port 2"
depends on GPIO_CMSDK_AHB
default n
help
Build the driver to utilize GPIO controller Port 2.
@ -91,7 +87,6 @@ config GPIO_CMSDK_AHB_PORT2_IRQ_PRI
config GPIO_CMSDK_AHB_PORT3
bool "Enable driver for GPIO Port 3"
depends on GPIO_CMSDK_AHB
default n
help
Build the driver to utilize GPIO controller Port 3.

View file

@ -8,7 +8,6 @@
menuconfig GPIO_DW
prompt "Designware GPIO"
default n
depends on GPIO
bool
help
@ -18,7 +17,6 @@ if GPIO_DW
config GPIO_DW_SHARED_IRQ
bool
default n
config GPIO_DW_INIT_PRIORITY
int
@ -30,7 +28,6 @@ config GPIO_DW_INIT_PRIORITY
config GPIO_DW_CLOCK_GATE
bool "Enable clock gating"
select CLOCK_CONTROL
default n
config GPIO_DW_CLOCK_GATE_DRV_NAME
string
@ -39,7 +36,6 @@ config GPIO_DW_CLOCK_GATE_DRV_NAME
config GPIO_DW_0
bool "Designware GPIO block 0"
default n
help
Include Designware GPIO driver
@ -92,7 +88,6 @@ endif
config GPIO_DW_1
bool "Designware GPIO block 1"
default n
help
Include Designware GPIO driver
@ -145,7 +140,6 @@ endif
config GPIO_DW_2
bool "Designware GPIO block 1"
default n
help
Include Designware GPIO driver
@ -198,7 +192,6 @@ endif
config GPIO_DW_3
bool "Designware GPIO block 1"
default n
help
Include Designware GPIO driver

View file

@ -9,7 +9,6 @@
menuconfig GPIO_ESP32
bool "ESP32 GPIO"
depends on GPIO && SOC_ESP32
default n
help
Enables the ESP32 GPIO driver

View file

@ -8,7 +8,6 @@
menuconfig GPIO_FE310
bool "SiFive Freedom E310 Processor GPIO driver"
depends on GPIO && SOC_RISCV32_FE310
default n
help
Enable driver for the SiFive Freedom E310 GPIO controller.

View file

@ -8,7 +8,6 @@
menuconfig GPIO_GECKO
bool "Gecko GPIO driver"
depends on GPIO && HAS_SILABS_GECKO
default n
help
Enable the Gecko gpio driver.
@ -28,7 +27,6 @@ config GPIO_GECKO_COMMON_PRI
config GPIO_GECKO_PORTA
bool "Port A"
default n
help
Enable Port A.
@ -39,7 +37,6 @@ config GPIO_GECKO_PORTA_NAME
config GPIO_GECKO_PORTB
bool "Port B"
default n
help
Enable Port B.
@ -50,7 +47,6 @@ config GPIO_GECKO_PORTB_NAME
config GPIO_GECKO_PORTC
bool "Port C"
default n
help
Enable Port C.
@ -61,7 +57,6 @@ config GPIO_GECKO_PORTC_NAME
config GPIO_GECKO_PORTD
bool "Port D"
default n
help
Enable Port D.
@ -72,7 +67,6 @@ config GPIO_GECKO_PORTD_NAME
config GPIO_GECKO_PORTE
bool "Port E"
default n
help
Enable Port E.
@ -83,7 +77,6 @@ config GPIO_GECKO_PORTE_NAME
config GPIO_GECKO_PORTF
bool "Port F"
default n
help
Enable Port F.

View file

@ -8,7 +8,6 @@
menuconfig GPIO_IMX
bool "IMX GPIO driver"
depends on GPIO && HAS_IMX_GPIO
default n
help
Enable the IMX GPIO driver.
@ -16,43 +15,36 @@ if GPIO_IMX
config GPIO_IMX_PORT_1
bool "Port 1"
default n
help
Enable Port 1.
config GPIO_IMX_PORT_2
bool "Port 2"
default n
help
Enable Port 2.
config GPIO_IMX_PORT_3
bool "Port 3"
default n
help
Enable Port 3.
config GPIO_IMX_PORT_4
bool "Port 4"
default n
help
Enable Port 4.
config GPIO_IMX_PORT_5
bool "Port 5"
default n
help
Enable Port 5.
config GPIO_IMX_PORT_6
bool "Port 6"
default n
help
Enable Port 6.
config GPIO_IMX_PORT_7
bool "Port 7"
default n
help
Enable Port 7.

View file

@ -10,7 +10,6 @@ menuconfig GPIO_MCUX
bool "MCUX GPIO driver"
depends on GPIO && HAS_MCUX
select HAS_DTS_GPIO
default n
help
Enable the MCUX pinmux driver.
@ -19,35 +18,30 @@ if GPIO_MCUX
config GPIO_MCUX_PORTA
bool "Port A"
depends on PINMUX_MCUX_PORTA
default n
help
Enable Port A.
config GPIO_MCUX_PORTB
bool "Port B"
depends on PINMUX_MCUX_PORTB
default n
help
Enable Port B.
config GPIO_MCUX_PORTC
bool "Port C"
depends on PINMUX_MCUX_PORTC
default n
help
Enable Port C.
config GPIO_MCUX_PORTD
bool "Port D"
depends on PINMUX_MCUX_PORTD
default n
help
Enable Port D.
config GPIO_MCUX_PORTE
bool "Port E"
depends on PINMUX_MCUX_PORTE
default n
help
Enable Port E.

View file

@ -8,7 +8,6 @@
menuconfig GPIO_MCUX_IGPIO
bool "MCUX IGPIO driver"
depends on GPIO && HAS_MCUX_IGPIO
default n
help
Enable the MCUX IGPIO driver.
@ -16,31 +15,26 @@ if GPIO_MCUX_IGPIO
config GPIO_MCUX_IGPIO_1
bool "Port 1"
default n
help
Enable Port 1.
config GPIO_MCUX_IGPIO_2
bool "Port 2"
default n
help
Enable Port 2.
config GPIO_MCUX_IGPIO_3
bool "Port 3"
default n
help
Enable Port 3.
config GPIO_MCUX_IGPIO_4
bool "Port 4"
default n
help
Enable Port 4.
config GPIO_MCUX_IGPIO_5
bool "Port 5"
default n
help
Enable Port 5.

View file

@ -8,7 +8,6 @@
menuconfig GPIO_MCUX_LPC
bool "MCUX LPC GPIO driver"
depends on GPIO && HAS_MCUX
default n
help
Enable the MCUX LPC pinmux driver.
@ -17,7 +16,6 @@ if GPIO_MCUX_LPC
config GPIO_MCUX_LPC_PORT0
bool "Port 0"
depends on PINMUX_MCUX_LPC_PORT0
default n
help
Enable Port 0.
@ -29,7 +27,6 @@ config GPIO_MCUX_LPC_PORT0_NAME
config GPIO_MCUX_LPC_PORT1
bool "Port 1"
depends on PINMUX_MCUX_LPC_PORT1
default n
help
Enable Port 1.

View file

@ -6,7 +6,6 @@
config GPIO_MMIO32
bool
default n
help
This is a driver for accessing a simple, fixed purpose, 32-bit
memory-mapped i/o register using the same APIs as GPIO drivers. This

View file

@ -9,7 +9,6 @@
menuconfig GPIO_PCAL9535A
bool "PCAL9535A I2C-based GPIO chip"
depends on GPIO && I2C
default n
help
Enable driver for PCAL9535A I2C-based GPIO chip.
@ -45,7 +44,6 @@ config GPIO_PCAL9535A_INIT_PRIORITY
config GPIO_PCAL9535A_0
bool "PCAL9535A GPIO chip #0"
depends on GPIO_PCAL9535A
default n
help
Enable config options for the PCAL9535A I2C-based GPIO chip #0.
@ -65,7 +63,6 @@ config GPIO_PCAL9535A_0_I2C_ADDR
config GPIO_PCAL9535A_0_I2C_MASTER_DEV_NAME
string "I2C Master where PCAL9535A GPIO chip #0 is connected"
depends on GPIO_PCAL9535A_0
default ""
help
Specify the device name of the I2C master device to which this
PCAL9535A chip #0 is binded.
@ -73,7 +70,6 @@ config GPIO_PCAL9535A_0_I2C_MASTER_DEV_NAME
config GPIO_PCAL9535A_1
bool "PCAL9535A GPIO chip #1"
depends on GPIO_PCAL9535A
default n
help
Enable config options for the PCAL9535A I2C-based GPIO chip #1.
@ -93,7 +89,6 @@ config GPIO_PCAL9535A_1_I2C_ADDR
config GPIO_PCAL9535A_1_I2C_MASTER_DEV_NAME
string "I2C Master where PCAL9535A GPIO chip #1 is connected"
depends on GPIO_PCAL9535A_1
default ""
help
Specify the device name of the I2C master device to which this
PCAL9535A chip #1 is binded.
@ -101,7 +96,6 @@ config GPIO_PCAL9535A_1_I2C_MASTER_DEV_NAME
config GPIO_PCAL9535A_2
bool "PCAL9535A GPIO chip #2"
depends on GPIO_PCAL9535A
default n
help
Enable config options for the PCAL9535A I2C-based GPIO chip #2.
@ -121,7 +115,6 @@ config GPIO_PCAL9535A_2_I2C_ADDR
config GPIO_PCAL9535A_2_I2C_MASTER_DEV_NAME
string "I2C Master where PCAL9535A GPIO chip #2 is connected"
depends on GPIO_PCAL9535A_2
default ""
help
Specify the device name of the I2C master device to which this
PCAL9535A chip #2 is binded.
@ -129,7 +122,6 @@ config GPIO_PCAL9535A_2_I2C_MASTER_DEV_NAME
config GPIO_PCAL9535A_3
bool "PCAL9535A GPIO chip #3"
depends on GPIO_PCAL9535A
default n
help
Enable config options for the PCAL9535A I2C-based GPIO chip #3.
@ -149,7 +141,6 @@ config GPIO_PCAL9535A_3_I2C_ADDR
config GPIO_PCAL9535A_3_I2C_MASTER_DEV_NAME
string "I2C Master where PCAL9535A GPIO chip #3 is connected"
depends on GPIO_PCAL9535A_3
default ""
help
Specify the device name of the I2C master device to which this
PCAL9535A chip #3 is binded.

View file

@ -8,7 +8,6 @@
menuconfig GPIO_PULPINO
bool "Pulpino GPIO controller driver"
depends on GPIO && SOC_RISCV32_PULPINO
default n
help
Enable driver for the Pulpino GPIO controller.

View file

@ -9,7 +9,6 @@
menuconfig GPIO_QMSI
bool "QMSI GPIO driver"
depends on GPIO && QMSI
default n
help
Enable the GPIO driver found on Intel Microcontroller
boards, using the QMSI library.
@ -17,7 +16,6 @@ menuconfig GPIO_QMSI
menuconfig GPIO_QMSI_SS
bool "QMSI GPIO SS driver"
depends on GPIO && QMSI && ARC
default n
help
Enable the GPIO driver found on Intel Microcontroller
boards, on the sensor subsystem, using the QMSI library.
@ -36,7 +34,6 @@ config GPIO_QMSI_API_REENTRANCY
bool
prompt "GPIO driver API reentrancy"
depends on GPIO_QMSI
default n
help
Enable support for QMSI GPIO driver API reentrancy.
@ -44,13 +41,11 @@ if GPIO_QMSI
config GPIO_QMSI_0
bool "QMSI GPIO block 0"
default n
help
Include support for the GPIO port 0 using QMSI.
config GPIO_QMSI_1
bool "QMSI GPIO block 1"
default n
help
Include support for the GPIO port 1 using QMSI.
@ -60,13 +55,11 @@ if GPIO_QMSI_SS
config GPIO_QMSI_SS_0
bool "QMSI GPIO SS block 0"
default n
help
Include support for the GPIO SS port 0 using QMSI.
config GPIO_QMSI_SS_1
bool "QMSI GPIO SS block 1"
default n
help
Include support for the GPIO SS port 1 using QMSI.

View file

@ -6,6 +6,5 @@
menuconfig GPIO_SAM
bool "Atmel SAM GPIO (PORT) driver"
depends on GPIO && SOC_FAMILY_SAM
default n
help
Enable support for the Atmel SAM 'PORT' GPIO controllers.

View file

@ -6,6 +6,5 @@
menuconfig GPIO_SAM0
bool "Atmel SAM0 GPIO (PORT) driver"
depends on GPIO && SOC_FAMILY_SAM0
default n
help
Enable support for the Atmel SAM0 'PORT' GPIO controllers.

View file

@ -9,7 +9,6 @@
menuconfig GPIO_SCH
bool "Intel SCH GPIO controller"
depends on GPIO
default n
help
Enable the SCH GPIO driver found on Intel boards
@ -35,7 +34,6 @@ config GPIO_SCH_0_DEV_NAME
config GPIO_SCH_1
bool "Enable SCH GPIO port 1"
default n
depends on GPIO_SCH
config GPIO_SCH_1_DEV_NAME

View file

@ -9,7 +9,6 @@ menuconfig GPIO_STM32
bool "GPIO Driver for STM32 family of MCUs"
depends on GPIO && SOC_FAMILY_STM32
select HAS_DTS_GPIO
default n
help
Enable GPIO driver for STM32 line of MCUs
@ -17,46 +16,35 @@ if GPIO_STM32
config GPIO_STM32_PORTA
bool "Enable GPIO port A support"
default n
config GPIO_STM32_PORTB
bool "Enable GPIO port B support"
default n
config GPIO_STM32_PORTC
bool "Enable GPIO port C support"
default n
config GPIO_STM32_PORTD
bool "Enable GPIO port D support"
default n
config GPIO_STM32_PORTE
bool "Enable GPIO port E support"
default n
config GPIO_STM32_PORTF
bool "Enable GPIO port F support"
default n
config GPIO_STM32_PORTG
bool "Enable GPIO port G support"
default n
config GPIO_STM32_PORTH
bool "Enable GPIO port H support"
default n
config GPIO_STM32_PORTI
bool "Enable GPIO port I support"
default n
config GPIO_STM32_PORTJ
bool "Enable GPIO port J support"
default n
config GPIO_STM32_PORTK
bool "Enable GPIO port K support"
default n
endif # GPIO_STM32

View file

@ -9,7 +9,6 @@
menuconfig GPIO_SX1509B
bool "SX1509B I2C GPIO chip"
depends on GPIO && I2C
default n
help
Enable driver for SX1509B I2C GPIO chip.
@ -36,7 +35,6 @@ config GPIO_SX1509B_I2C_ADDR
config GPIO_SX1509B_I2C_MASTER_DEV_NAME
string "I2C Master to which SX1509B GPIO chip is connected"
default ""
help
Specify the device name of the I2C master device to which SX1509B
chip is binded.