zephyr/drivers/sensor/th02/Kconfig
Ulf Magnusson 8cf8db3a73 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>
2018-08-15 04:10:10 -07:00

28 lines
499 B
Plaintext

#
# Copyright (c) 2016 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
menuconfig TH02
bool "TH02 Temperature Sensor"
depends on I2C
help
Enable driver for the TH02 temperature sensor.
if TH02
config TH02_NAME
string "Driver name"
default "TH02"
help
Device name with which the TH02 sensor is identified.
config TH02_I2C_MASTER_DEV_NAME
string "I2C Master"
default "I2C_0"
help
The device name of the I2C master device to which the TH02
chip is connected.
endif