Commit 76a954d9a215 for kernel
commit 76a954d9a215edc64a394bfdf3aa5091f4438c6a
Author: Pengpeng Hou <hppiscas@163.com>
Date: Fri Dec 4 09:54:41 2026 +0800
hwmon: (ltq-cputemp) depend on HWMON=y
The XWAY temperature driver is selected by a boolean option under HWMON.
With HWMON=m the selected built-in object is not included by that
directory descent.
Require HWMON=y for this platform driver. This avoids advertising an
unbuilt sensor; it does not implement a loadable XWAY sensor.
The issue was found by our static-analysis tool and manually reviewed.
Fixes: 7074d0a92758 ("hwmon: (ltq-cputemp) add cpu temp sensor driver")
Cc: stable@vger.kernel.org
Signed-off-by: Pengpeng Hou <hppiscas@163.com>
Link: https://patch.msgid.link/179634928168.74470.5781132422211450535@163.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
index 83084891b4bb..37d8611932f1 100644
--- a/drivers/hwmon/Kconfig
+++ b/drivers/hwmon/Kconfig
@@ -1238,7 +1238,7 @@ config SENSORS_LTC4283
config SENSORS_LTQ_CPUTEMP
bool "Lantiq cpu temperature sensor driver"
- depends on SOC_XWAY
+ depends on SOC_XWAY && HWMON=y
help
If you say yes here you get support for the temperature
sensor inside your CPU.