Skip to content

Commit 7a2a4ff

Browse files
aurel32nashif
authored andcommitted
drivers: sensor: tmp112: only show options when device enabled
Only show the tmp112 runtime options when the tmp112 driver is enabled, otherwise the option is confusing and does not appear hierarchically in menuconfig. Signed-off-by: Aurelien Jarno <[email protected]>
1 parent cbbb64a commit 7a2a4ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/sensor/ti/tmp112/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ config TMP112
1515
The TMP102 is compatible with the TMP112 but is less accurate and has
1616
been successfully tested with this driver.
1717

18+
if TMP112
19+
1820
config TMP112_FULL_SCALE_RUNTIME
1921
bool "Allow to set extended mode at runtime"
2022
default y
@@ -28,3 +30,5 @@ config TMP112_SAMPLING_FREQUENCY_RUNTIME
2830
help
2931
When set conversion rate can be set at runtime using sensor_attr_set
3032
with SENSOR_ATTR_SAMPLING_FREQUENCY
33+
34+
endif # TMP112

0 commit comments

Comments
 (0)