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:
Maureen Helm 2018-09-12 17:23:26 -05:00 committed by Anas Nashif
commit ab9017ec83
36 changed files with 234 additions and 316 deletions

View file

@ -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