Skip to contentSkip to conversation

power: supply: cw2015: Attach OF ID table to the driver

PATCH In review Andy Shevchenko 3 participants 3 messages May 30, 2020 – Jun 5, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 power: supply: cw2015: Attach OF ID table to the driver

It appears that OF ID table was hanging around without being attached to the driver. Attach it properly.

Fixes b4c7715c10c1 ("power: supply: add CellWise cw2015 fuel gauge driver")
---
 drivers/power/supply/cw2015_battery.c | 1 +
 1 file changed, 1 insertion(+)
drivers/power/supply/cw2015_battery.c +1 -0
index 19f62ea957ee..0146f1bfc29b 100644
@@ -734,6 +734,7 @@ MODULE_DEVICE_TABLE(of, cw2015_of_match);
 static struct i2c_driver cw_bat_driver = {
 	.driver = {
 		.name = "cw2015",
+		.of_match_table = cw2015_of_match,
 		.pm = &cw_bat_pm_ops,
 	},
 	.probe_new = cw_bat_probe,
Signature · 1 line
2.27.0.rc2
maintainer Acked-by Tested-by on v1 1/1
#1 lore raw

Hi Andy,

drivers/power/supply/cw2015_battery.c MODULE_DEVICE_TABLE(of, cw2015_of_match); · line 740

Quoted 13 lines
drivers/power/supply/cw2015_battery.c +1 -0
index 19f62ea957ee..0146f1bfc29b 100644
@@ -734,6 +734,7 @@ MODULE_DEVICE_TABLE(of, cw2015_of_match);
 static struct i2c_driver cw_bat_driver = {
 	.driver = {
 		.name = "cw2015",
+		.of_match_table = cw2015_of_match,
 		.pm = &cw_bat_pm_ops,
 	},
 	.probe_new = cw_bat_probe,

LGTM.

Thanks,

Tobias

#2 lore raw

Hi,

Quoted 18 lines · Tobias Schramm

Hi Andy,

drivers/power/supply/cw2015_battery.c MODULE_DEVICE_TABLE(of, cw2015_of_match); · line 740

Quoted 13 lines
drivers/power/supply/cw2015_battery.c +1 -0
index 19f62ea957ee..0146f1bfc29b 100644
@@ -734,6 +734,7 @@ MODULE_DEVICE_TABLE(of, cw2015_of_match);
 static struct i2c_driver cw_bat_driver = {
 	.driver = {
 		.name = "cw2015",
+		.of_match_table = cw2015_of_match,
 		.pm = &cw_bat_pm_ops,
 	},
 	.probe_new = cw_bat_probe,

LGTM.

Quoted 2 lines

Thanks, queued.

-- Sebastian