Commit 432dccc439e8 for kernel
commit 432dccc439e82c8cde4ba5e52f820ae356564229
Author: Pengpeng Hou <hppiscas@163.com>
Date: Mon Nov 30 21:20:53 2026 +0800
hwmon: (lan966x) Select the MMIO regmap backend
lan966x-hwmon.c initializes an MMIO regmap using
devm_regmap_init_mmio(), but SENSORS_LAN966X does not select
REGMAP_MMIO. The driver can therefore be enabled without the
required register-transport implementation and fail to build.
Select REGMAP_MMIO so the backend is enabled at the linkage level
required by this consumer, rather than relying on another driver to
pull it in.
The issue was found by our static-analysis tool and manually reviewed.
Fixes: c8f55be4a1c7 ("hwmon: add driver for the Microchip LAN966x SoC")
Cc: stable@vger.kernel.org
Signed-off-by: Pengpeng Hou <hppiscas@163.com>
Link: https://patch.msgid.link/20261130132053.82864-1-hppiscas@163.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
index 18c682e1a475..83084891b4bb 100644
--- a/drivers/hwmon/Kconfig
+++ b/drivers/hwmon/Kconfig
@@ -1020,7 +1020,7 @@ config SENSORS_PROM21_XHCI
config SENSORS_LAN966X
tristate "Microchip LAN966x Hardware Monitoring"
depends on SOC_LAN966 || COMPILE_TEST
- select REGMAP
+ select REGMAP_MMIO
select POLYNOMIAL
help
If you say yes here you get support for temperature monitoring