mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
hwmon: (ntc_thermistor) fix module autoloading
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>
This commit is contained in:
committed by
Guenter Roeck
parent
720c741c22
commit
b6964d66a0
@@ -62,6 +62,7 @@ static const struct platform_device_id ntc_thermistor_id[] = {
|
|||||||
[NTC_SSG1404001221] = { "ssg1404_001221", TYPE_NCPXXWB473 },
|
[NTC_SSG1404001221] = { "ssg1404_001221", TYPE_NCPXXWB473 },
|
||||||
[NTC_LAST] = { },
|
[NTC_LAST] = { },
|
||||||
};
|
};
|
||||||
|
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