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
commit 975de21858
197 changed files with 657 additions and 658 deletions

View file

@ -7,8 +7,8 @@
#
choice
prompt "STM32F1x MCU Selection"
depends on SOC_SERIES_STM32F1X
prompt "STM32F1x MCU Selection"
depends on SOC_SERIES_STM32F1X
config SOC_STM32F103XE
bool "STM32F103XE"
@ -31,16 +31,16 @@ endchoice
config SOC_STM32F10X_DENSITY_DEVICE
bool
help
* Low density Value line devices
* Medium density Value line devices
* High density Value line devices
* XL-density devices Value line devices
* Low density Value line devices
* Medium density Value line devices
* High density Value line devices
* XL-density devices Value line devices
config SOC_STM32F10X_CONNECTIVITY_LINE_DEVICE
bool
help
Connectivity line devices are STM32F105xx and STM32F107xx
microcontrollers. They are intended for applications where
connectivity and real-time performances are required such as
industrial control, control panels for security applications, UPS or
home audio. For STM32F107xx also the Ethernet MAC is available.
Connectivity line devices are STM32F105xx and STM32F107xx
microcontrollers. They are intended for applications where
connectivity and real-time performances are required such as
industrial control, control panels for security applications, UPS or
home audio. For STM32F107xx also the Ethernet MAC is available.