sensor: Eliminate repetitive Kconfig "depends on" in sensor drivers
For each sensor driver, wrap all Kconfig symbols in a big if/endif conditional rather than repeating "depends on" for each symbol. Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
parent
1666130416
commit
ab9017ec83
36 changed files with 234 additions and 316 deletions
|
@ -16,16 +16,16 @@ menuconfig TMP112
|
|||
The TMP102 is compatible with the TMP112 but is less accurate and has
|
||||
been successfully tested with this driver.
|
||||
|
||||
if TMP112
|
||||
|
||||
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.
|
||||
|
@ -38,8 +38,9 @@ config TMP112_I2C_ADDR
|
|||
|
||||
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.
|
||||
|
||||
endif # TMP112
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue