summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPengpeng Hou <pengpeng@iscas.ac.cn>2026-07-04 23:24:28 +0800
committerSebastian Reichel <sebastian.reichel@collabora.com>2026-07-21 22:28:11 +0200
commit9da4152d376cacee7f74f37080fc3c459309e1da (patch)
treedceb7c32cf004d73b2701c7e2ffdcc848187b23c
parentffefc5d9a052f67bc87b57d1107fd7cc1fa1a3d4 (diff)
downloadlinux-9da4152d376cacee7f74f37080fc3c459309e1da.tar.gz
linux-9da4152d376cacee7f74f37080fc3c459309e1da.zip
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>
-rw-r--r--drivers/power/supply/cw2015_battery.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/supply/cw2015_battery.c b/drivers/power/supply/cw2015_battery.c
index 7496295d2948..1bcb60cf763d 100644
--- a/drivers/power/supply/cw2015_battery.c
+++ b/drivers/power/supply/cw2015_battery.c
@@ -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" },