kconfig: Global whitespace/consistency cleanup

Clean up space errors and use a consistent style throughout the Kconfig
files. This makes reading the Kconfig files more distraction-free, helps
with grepping, and encourages the same style getting copied around
everywhere (meaning another pass hopefully won't be needed).

Go for the most common style:

 - Indent properties with a single tab, including for choices.

   Properties on choices work exactly the same syntactically as
   properties on symbols, so not sure how the no-indentation thing
   happened.

 - Indent help texts with a tab followed by two spaces

 - Put a space between 'config' and the symbol name, not a tab. This
   also helps when grepping for definitions.

 - Do '# A comment' instead of '#A comment'

I tweaked Kconfiglib a bit to find most of the stuff.

Some help texts were reflowed to 79 columns with 'gq' in Vim as well,
though not all, because I was afraid I'd accidentally mess up
formatting.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
This commit is contained in:
Ulf Magnusson 2019-11-01 10:24:07 +01:00 committed by Kumar Gala
parent 9555f82d28
commit 975de21858
197 changed files with 657 additions and 658 deletions

View file

@ -71,13 +71,12 @@ source "subsys/logging/Kconfig.template.log_config"
config BIG_ENDIAN config BIG_ENDIAN
bool bool
help help
This option tells the build system that the target system is This option tells the build system that the target system is big-endian.
big-endian. Little-endian architecture is the default and Little-endian architecture is the default and should leave this option
should leave this option unselected. This option is selected unselected. This option is selected by arch/$ARCH/Kconfig,
by arch/$ARCH/Kconfig, soc/**/Kconfig, or boards/**/Kconfig soc/**/Kconfig, or boards/**/Kconfig and the user should generally avoid
and the user should generally avoid modifying it. The option modifying it. The option is used to select linker script OUTPUT_FORMAT
is used to select linker script OUTPUT_FORMAT and command and command line option for gen_isr_tables.py.
line option for gen_isr_tables.py.
config 64BIT config 64BIT
bool bool

View file

@ -18,7 +18,9 @@ config QEMU_TARGET
choice choice
prompt "Board Selection" prompt "Board Selection"
source "$(BOARD_DIR)/Kconfig.board" source "$(BOARD_DIR)/Kconfig.board"
endchoice endchoice

View file

@ -99,7 +99,6 @@ if !RTOS_TIMER
# If RTOS timer is not enabled we use ARM Cortex-M # If RTOS timer is not enabled we use ARM Cortex-M
# SYSTICK. SYSTICK frequency is 48MHz divided by # SYSTICK. SYSTICK frequency is 48MHz divided by
# SOC_MEC1501_PROC_CLK_DIV. # SOC_MEC1501_PROC_CLK_DIV.
#
config SYS_CLOCK_HW_CYCLES_PER_SEC config SYS_CLOCK_HW_CYCLES_PER_SEC
default 48000000 default 48000000
@ -119,4 +118,3 @@ config PS2_XEC_1
endif # PS2 endif # PS2
endif # BOARD_MEC1501MODULAR_ASSY6885 endif # BOARD_MEC1501MODULAR_ASSY6885

View file

@ -15,7 +15,7 @@ config BOARD_HAS_NRF5_BOOTLOADER
bool "Board has nRF5 bootloader" bool "Board has nRF5 bootloader"
default y default y
help help
If selected, applications are linked so that they can be loaded by If selected, applications are linked so that they can be loaded by Nordic
Nordic nRF5 bootloader. nRF5 bootloader.
endif # BOARD_NRF52840_PCA10059 endif # BOARD_NRF52840_PCA10059

View file

@ -10,9 +10,9 @@ config BOARD_NRF52840_GPIO_RESET
bool "Use nRF52840 PCA10090 GPIO reset pin" bool "Use nRF52840 PCA10090 GPIO reset pin"
default y if BT_H4 default y if BT_H4
help help
Use a GPIO pin to reset the nRF52840 controller and let it wait Use a GPIO pin to reset the nRF52840 controller and let it wait until all
until all bytes traveling to the H4 device have been received bytes traveling to the H4 device have been received and drained, thus
and drained, thus ensuring communication can begin correctly. ensuring communication can begin correctly.
if BOARD_NRF52840_GPIO_RESET if BOARD_NRF52840_GPIO_RESET

View file

@ -88,8 +88,8 @@ config CLOCK_STM32_MSI_RANGE
choice choice
prompt "STM32 PLL Clock Source" prompt "STM32 PLL Clock Source"
depends on CLOCK_STM32_SYSCLK_SRC_PLL
default CLOCK_STM32_PLL_SRC_HSI default CLOCK_STM32_PLL_SRC_HSI
depends on CLOCK_STM32_SYSCLK_SRC_PLL
config CLOCK_STM32_PLL_SRC_MSI config CLOCK_STM32_PLL_SRC_MSI
bool "MSI" bool "MSI"

View file

@ -30,6 +30,7 @@ config SOC_FLASH_STM32
select FLASH_HAS_PAGE_LAYOUT if SOC_SERIES_STM32WBX select FLASH_HAS_PAGE_LAYOUT if SOC_SERIES_STM32WBX
select FLASH_HAS_PAGE_LAYOUT if SOC_SERIES_STM32G4X select FLASH_HAS_PAGE_LAYOUT if SOC_SERIES_STM32G4X
help help
Enable STM32F0x, STM32F3x, STM32F4x, STM32F7x, STM32L4x, STM32WBx, STM32G0x or STM32G4x series flash driver. Enable STM32F0x, STM32F3x, STM32F4x, STM32F7x, STM32L4x, STM32WBx,
STM32G0x or STM32G4x series flash driver.
endif endif

View file

@ -45,4 +45,3 @@ config GPIO_XEC_GPIO240_276
Enable GPIO 240-276 or what would be equivalent to Port E Enable GPIO 240-276 or what would be equivalent to Port E
endif # GPIO_XEC endif # GPIO_XEC

View file

@ -87,7 +87,6 @@ config SLIP_TAP
help help
In TAP the Ethernet frames are transferred over SLIP. In TAP the Ethernet frames are transferred over SLIP.
config SLIP_MAC_ADDR config SLIP_MAC_ADDR
string "MAC address for the interface" string "MAC address for the interface"
help help

View file

@ -74,4 +74,3 @@ config PINMUX_XEC_GPIO240_276_NAME
default "port200_276" default "port200_276"
endif # PINMUX_XEC endif # PINMUX_XEC

View file

@ -52,4 +52,4 @@ config AMG88XX_THREAD_STACK_SIZE
help help
Stack size of thread used by the driver to handle interrupts. Stack size of thread used by the driver to handle interrupts.
endif #if AMG88XX endif # AMG88XX

View file

@ -18,7 +18,6 @@ config MCP9808_DEV_NAME
string "MCP9808 device name" string "MCP9808 device name"
default "MCP9808" default "MCP9808"
config MCP9808_I2C_ADDR config MCP9808_I2C_ADDR
hex "MCP9808 I2C slave address" hex "MCP9808 I2C slave address"
default 0x18 default 0x18

View file

@ -9,13 +9,15 @@ if SOC_FAMILY_NRF
source "soc/arm/nordic_nrf/*/Kconfig.defconfig.series" source "soc/arm/nordic_nrf/*/Kconfig.defconfig.series"
if SYS_CLOCK_EXISTS
# If the kernel has timer support, enable both clock control and timer # If the kernel has timer support, enable both clock control and timer
if SYS_CLOCK_EXISTS
config CLOCK_CONTROL config CLOCK_CONTROL
default y default y
config NRF_RTC_TIMER config NRF_RTC_TIMER
default y default y
endif # SYS_CLOCK_EXISTS endif # SYS_CLOCK_EXISTS
config SYS_CLOCK_HW_CYCLES_PER_SEC config SYS_CLOCK_HW_CYCLES_PER_SEC

View file

@ -13,5 +13,4 @@ depends on SOC_SERIES_STM32G0X
config SOC_STM32G071XX config SOC_STM32G071XX
bool "STM32G071XX" bool "STM32G071XX"
endchoice endchoice

View file

@ -142,4 +142,5 @@ config BT_GATT_DIS_SW_REV_STR
depends on BT_GATT_DIS_SW_REV depends on BT_GATT_DIS_SW_REV
help help
Enable software revision characteristic in Device Information Service. Enable software revision characteristic in Device Information Service.
endif # BT_GATT_DIS endif # BT_GATT_DIS

View file

@ -70,6 +70,7 @@ module-dep = NET_LOG
module-str = Log level for CANbus L2 layer module-str = Log level for CANbus L2 layer
module-help = Enables CANbus L2 to output debug messages. module-help = Enables CANbus L2 to output debug messages.
source "subsys/net/Kconfig.template.log_config.net" source "subsys/net/Kconfig.template.log_config.net"
endif # NET_L2_CANBUS endif # NET_L2_CANBUS
config NET_L2_CANBUS_RAW config NET_L2_CANBUS_RAW