mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
power: supply: cw2015_battery: 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://patch.msgid.link/20260704152428.51844-1-pengpeng@iscas.ac.cn Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
parent
ffefc5d9a0
commit
9da4152d37
|
|
@ -736,6 +736,7 @@ static const struct i2c_device_id cw_bat_id_table[] = {
|
|||
{ .name = "cw2015" },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, cw_bat_id_table);
|
||||
|
||||
static const struct of_device_id cw2015_of_match[] = {
|
||||
{ .compatible = "cellwise,cw2015" },
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user