Kconfig: Use a short, consistent style for prompts

Consistently use

    config FOO
            bool/int/hex/string "Prompt text"

instead of

    config FOO
            bool/int/hex/string
            prompt "Prompt text"

(...and a bunch of other variations that e.g. swapped the order of the
type and the 'prompt', or put other properties between them).

The shorthand is fully equivalent to using 'prompt'. It saves lines and
avoids tricking people into thinking there is some semantic difference.

Most of the grunt work was done by a modified version of
https://unix.stackexchange.com/questions/26284/
how-can-i-use-sed-to-replace-a-multi-line-string/26290#26290, but some
of the rarer variations had to be converted manually.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
This commit is contained in:
Ulf Magnusson 2018-08-14 16:19:20 +02:00 committed by Anas Nashif
commit 8cf8db3a73
127 changed files with 629 additions and 1258 deletions

View file

@ -6,8 +6,7 @@
#
menuconfig RTC_MCUX
bool
prompt "MCUX RTC driver"
bool "MCUX RTC driver"
depends on RTC && HAS_MCUX_RTC
help
Enable support for mcux rtc driver.

View file

@ -7,15 +7,13 @@ config RTC_QMSI
if RTC_QMSI
config RTC_QMSI_API_REENTRANCY
bool
prompt "RTC shim driver API reentrancy"
bool "RTC shim driver API reentrancy"
help
Enable support for RTC shim driver API reentrancy.
config RTC_PRESCALER
int
int "Prescaler size"
default 1
prompt "Prescaler size"
help
RTC prescaler used to determine ticks per second