Skip to contentSkip to conversation

hwmon: Fix SENSORS_TMP102 dependencies to eliminate build errors

PATCH In review Jean Delvare 3 participants 3 messages Jan 8, 2014 Hardware monitoring

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

Cc Randy Dunlap <[email protected]>
Cc Eduardo Valentin <[email protected]>
---
 drivers/hwmon/Kconfig |    1 +
 1 file changed, 1 insertion(+)
drivers/hwmon/Kconfig +1 -0
@@ -1285,6 +1285,7 @@ config SENSORS_THMC50
 config SENSORS_TMP102
 	tristate "Texas Instruments TMP102"
 	depends on I2C
+	depends on THERMAL || !THERMAL_OF
 	help
 	  If you say yes here you get support for Texas Instruments TMP102
 	  sensor chips.
Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Jean Delvare

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.

Cc Randy Dunlap <[email protected]>
Cc Eduardo Valentin <[email protected]>
Quoted 16 lines
---
 drivers/hwmon/Kconfig |    1 +
 1 file changed, 1 insertion(+)
drivers/hwmon/Kconfig +1 -0
@@ -1285,6 +1285,7 @@ config SENSORS_THMC50
 config SENSORS_TMP102
 	tristate "Texas Instruments TMP102"
 	depends on I2C
+	depends on THERMAL || !THERMAL_OF
 	help
 	  If you say yes here you get support for Texas Instruments TMP102
 	  sensor chips.
Signature · 3 lines
You have got to be excited about what you are doing. (L. Lamport)

Eduardo Valentin

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

maintainer Reviewed-by on v1 1/1
#2 lore raw
In reply to Jean Delvare
Quoted 9 lines · Jean Delvare

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.

Cc Randy Dunlap <[email protected]>
Cc Eduardo Valentin <[email protected]>
Quoted 16 lines
---
  drivers/hwmon/Kconfig |    1 +
  1 file changed, 1 insertion(+)
drivers/hwmon/Kconfig +1 -0
@@ -1285,6 +1285,7 @@ config SENSORS_THMC50
  config SENSORS_TMP102
  	tristate "Texas Instruments TMP102"
  	depends on I2C
+	depends on THERMAL || !THERMAL_OF
  	help
  	  If you say yes here you get support for Texas Instruments TMP102
  	  sensor chips.