Skip to content

Commit 632007e

Browse files
Jean DelvareJean Delvare
authored andcommitted
hwmon: Fix SENSORS_TMP102 dependencies to eliminate build errors
Similar to what was done for the lm75 driver. Add depends on THERMAL since that is what provides the register/unregister functions above, but only if THERMAL_OF was selected as this is an optional feature of the driver. Signed-off-by: Jean Delvare <[email protected]> Cc: Randy Dunlap <[email protected]> Acked-by: Eduardo Valentin <[email protected]> Reviewed-by: Guenter Roeck <[email protected]>
1 parent 920130a commit 632007e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/hwmon/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1286,6 +1286,7 @@ config SENSORS_THMC50
12861286
config SENSORS_TMP102
12871287
tristate "Texas Instruments TMP102"
12881288
depends on I2C
1289+
depends on THERMAL || !THERMAL_OF
12891290
help
12901291
If you say yes here you get support for Texas Instruments TMP102
12911292
sensor chips.

0 commit comments

Comments
 (0)