Skip to contentSkip to conversation

hwmon: SENSORS_SBTSI should depend on X86

PATCH New Geert Uytterhoeven 1 participant 1 message Dec 16, 2020 Hardware monitoring

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hwmon: SENSORS_SBTSI should depend on X86

The AMD SB Temperature Sensor Interface (SB-TSI) is only present on AMD X86 SoCs. Hence add a dependency on X86, to prevent asking the user about this driver when configuring a kernel without AMD X86 platform support.

Fixes e7bb1a2ab8c4b156 ("hwmon: (sbtsi) Add basic support for SB-TSI sensors")
---
 drivers/hwmon/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/hwmon/Kconfig +1 -0
index 1ecf697d8d99b70c..63d28f98108d4bb5 100644
@@ -1536,6 +1536,7 @@ config SENSORS_SL28CPLD
 config SENSORS_SBTSI
 	tristate "Emulated SB-TSI temperature sensor"
 	depends on I2C
+	depends on X86 || COMPILE_TEST
 	help
 	  If you say yes here you get support for emulated temperature
 	  sensors on AMD SoCs with SB-TSI interface connected to a BMC device.
Signature · 1 line
2.25.1