Skip to content

Commit 9455b41

Browse files
dschkartben
authored andcommitted
drivers: sensor: maxim,ds3231: fix config dependency
Make the config which is specific for DS3231 depend on the driver for it being enabled. Signed-off-by: David Schneider <schneidav81@gmail.com>
1 parent aa8b258 commit 9455b41

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/sensor/maxim/ds3231/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,13 @@ config SENSOR_DS3231
1414
help
1515
Enable driver for DS3231 I2C-based temperature sensor.
1616

17+
if SENSOR_DS3231
18+
1719
config SENSOR_DS3231_INIT_PRIORITY
1820
int "DS3231 sensor driver init priority"
1921
default 86
2022
help
2123
Init priority for the DS3231 sensor driver. It must be
2224
greater than MFD_INIT_PRIORITY.
25+
26+
endif # SENSOR_DS3231

0 commit comments

Comments
 (0)