mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 16:53:20 -04:00
hwmon: (acbel-fsg032) Add missing MODULE_DEVICE_TABLE()
The driver has a match table for the i2c bus wired into its driver structure, but the table is not exported with MODULE_DEVICE_TABLE(). Add the missing MODULE_DEVICE_TABLE() entry so module alias information is generated for automatic module loading. This is a source-level fix. It does not claim dynamic hardware reproduction; the evidence is the driver-owned match table, its use by the driver registration structure, and the missing module alias publication. Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn> Link: https://lore.kernel.org/r/20260704151543.35069-1-pengpeng@iscas.ac.cn Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
committed by
Guenter Roeck
parent
ff71049f36
commit
2ed6f97e56
@@ -52,6 +52,7 @@ static const struct i2c_device_id acbel_fsg032_id[] = {
|
||||
{ .name = "acbel_fsg032" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, acbel_fsg032_id);
|
||||
|
||||
static struct pmbus_driver_info acbel_fsg032_info = {
|
||||
.pages = 1,
|
||||
|
||||
Reference in New Issue
Block a user