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:
parent
bb0b66e15a
commit
8cf8db3a73
127 changed files with 629 additions and 1258 deletions
|
@ -6,8 +6,7 @@
|
|||
#
|
||||
|
||||
menuconfig ADT7420
|
||||
bool
|
||||
prompt "ADT7420 Temperature Sensor"
|
||||
bool "ADT7420 Temperature Sensor"
|
||||
depends on I2C
|
||||
help
|
||||
Enable the driver for Analog Devices ADT7420 High-Accuracy
|
||||
|
@ -18,8 +17,7 @@ if ADT7420
|
|||
if !HAS_DTS_I2C_DEVICE
|
||||
|
||||
config ADT7420_NAME
|
||||
string
|
||||
prompt "Driver name"
|
||||
string "Driver name"
|
||||
default "ADT7420"
|
||||
help
|
||||
Device name with which the ADT7420 sensor is identified.
|
||||
|
@ -36,8 +34,7 @@ config ADT7420_I2C_ADDR
|
|||
0x4B: A0 connected VDD and A1 connected to VDD.
|
||||
|
||||
config ADT7420_I2C_MASTER_DEV_NAME
|
||||
string
|
||||
prompt "I2C master where ADT7420 is connected"
|
||||
string "I2C master where ADT7420 is connected"
|
||||
default "I2C_0"
|
||||
help
|
||||
Specify the device name of the I2C master device to which the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue