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>
46 lines
1.1 KiB
Plaintext
46 lines
1.1 KiB
Plaintext
# Kconfig - TMP112 temperature sensor configuration options
|
|
|
|
#
|
|
# Copyright (c) 2016 Firmwave
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
menuconfig TMP112
|
|
bool "TMP112 Temperature Sensor"
|
|
depends on I2C
|
|
help
|
|
Enable the driver for Texas Instruments TMP112 High-Accuracy Digital
|
|
Temperature Sensors.
|
|
|
|
The TMP102 is compatible with the TMP112 but is less accurate and has
|
|
been successfully tested with this driver.
|
|
|
|
config TMP112_NAME
|
|
string "Driver name"
|
|
default "TMP112"
|
|
depends on TMP112
|
|
help
|
|
Device name with which the TMP112 sensor is identified.
|
|
|
|
config TMP112_I2C_ADDR
|
|
hex "I2C address for TMP112"
|
|
depends on TMP112
|
|
default 0x48
|
|
help
|
|
I2C address of the TMP112 sensor.
|
|
|
|
0x48: A0 connected GND and A1 connected to GND.
|
|
0x49: A0 connected VDD and A1 connected to GND.
|
|
0x4A: A0 connected SDA and A1 connected to GND.
|
|
0x4B: A0 connected SCL and A1 connected to GND.
|
|
|
|
|
|
config TMP112_I2C_MASTER_DEV_NAME
|
|
string "I2C master where TMP112 is connected"
|
|
depends on TMP112
|
|
default "I2C_0"
|
|
help
|
|
Specify the device name of the I2C master device to which the
|
|
TMP112 chip is connected.
|