hwmon: (ntc_thermistor) fix module autoloading
[ Upstream commit b6964d66a07a9003868e428a956949e17ab44d7e ]
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
based on the alias from of_device_id table.
Fixes: 9e8269de10 ("hwmon: (ntc_thermistor) Add DT with IIO support to NTC thermistor driver")
Signed-off-by: Yuntao Liu <liuyuntao12@huawei.com>
Message-ID: <20240815083021.756134-1-liuyuntao12@huawei.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
6015f85fc8
commit
6f91b04649
@@ -57,6 +57,7 @@ static const struct platform_device_id ntc_thermistor_id[] = {
|
|||||||
{ "ncp15xh103", TYPE_NCPXXXH103 },
|
{ "ncp15xh103", TYPE_NCPXXXH103 },
|
||||||
{ },
|
{ },
|
||||||
};
|
};
|
||||||
|
MODULE_DEVICE_TABLE(platform, ntc_thermistor_id);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* A compensation table should be sorted by the values of .ohm
|
* A compensation table should be sorted by the values of .ohm
|
||||||
|
|||||||
Reference in New Issue
Block a user