diff mbox series

[v1] power: supply: cw2015: Attach OF ID table to the driver

Message ID 20200530164030.47884-1-andriy.shevchenko@linux.intel.com (mailing list archive)
State Not Applicable, archived
Headers show
Series [v1] power: supply: cw2015: Attach OF ID table to the driver | expand

Commit Message

Andy Shevchenko May 30, 2020, 4:40 p.m. UTC
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")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/power/supply/cw2015_battery.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Tobias Schramm May 30, 2020, 5 p.m. UTC | #1
Hi Andy,

> diff --git a/drivers/power/supply/cw2015_battery.c b/drivers/power/supply/cw2015_battery.c
> index 19f62ea957ee..0146f1bfc29b 100644
> --- a/drivers/power/supply/cw2015_battery.c
> +++ b/drivers/power/supply/cw2015_battery.c
> @@ -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.

Acked-By: Tobias Schramm <t.schramm@manjaro.org>
Tested-By: Tobias Schramm <t.schramm@manjaro.org>

Thanks,

Tobias
Sebastian Reichel June 5, 2020, 11:16 p.m. UTC | #2
Hi,

On Sat, May 30, 2020 at 07:00:47PM +0200, Tobias Schramm wrote:
> Hi Andy,
> 
> > diff --git a/drivers/power/supply/cw2015_battery.c b/drivers/power/supply/cw2015_battery.c
> > index 19f62ea957ee..0146f1bfc29b 100644
> > --- a/drivers/power/supply/cw2015_battery.c
> > +++ b/drivers/power/supply/cw2015_battery.c
> > @@ -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.
> 
> Acked-By: Tobias Schramm <t.schramm@manjaro.org>
> Tested-By: Tobias Schramm <t.schramm@manjaro.org>

Thanks, queued.

-- Sebastian
diff mbox series

Patch

diff --git a/drivers/power/supply/cw2015_battery.c b/drivers/power/supply/cw2015_battery.c
index 19f62ea957ee..0146f1bfc29b 100644
--- a/drivers/power/supply/cw2015_battery.c
+++ b/drivers/power/supply/cw2015_battery.c
@@ -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,