[PATCH] thermal/drivers/qcom/spmi-mbg-tm: Import IIO_CONSUMER namespace

From: Shawn Guo

Date: Thu Aug 27 2026 - 06:36:47 EST


The IIO consumer interface symbols moved into the IIO_CONSUMER namespace,
so consumers must import it explicitly. Without it modpost fails on
'iio_read_channel_processed' and 'devm_iio_channel_get':

ERROR: modpost: drivers/thermal/qcom/qcom-spmi-mbg-tm.ko: module uses
symbol 'iio_read_channel_processed' from namespace 'IIO_CONSUMER', but
does not import it.

Fixes: ebf1d03dab96 ("iio: inkern: Use namespaced exports")
Signed-off-by: Shawn Guo <shengchao.guo@xxxxxxxxxxxxxxxx>
---
drivers/thermal/qcom/qcom-spmi-mbg-tm.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/thermal/qcom/qcom-spmi-mbg-tm.c b/drivers/thermal/qcom/qcom-spmi-mbg-tm.c
index 0492d5eeca01..012eb2a5f31f 100644
--- a/drivers/thermal/qcom/qcom-spmi-mbg-tm.c
+++ b/drivers/thermal/qcom/qcom-spmi-mbg-tm.c
@@ -252,5 +252,6 @@ static struct platform_driver mbg_tm_driver = {
};
module_platform_driver(mbg_tm_driver);

+MODULE_IMPORT_NS("IIO_CONSUMER");
MODULE_DESCRIPTION("PMIC MBG Temperature monitor driver");
MODULE_LICENSE("GPL");
--
2.43.0