2018-12-26 17:08:29

by Frank Lee

[permalink] [raw]
Subject: [PATCH] power: supply: remove some duplicated includes

We include of.h twice. It's unnecessary,so
just remove them.

Signed-off-by: Yangtao Li <[email protected]>
---
drivers/power/supply/power_supply_core.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/drivers/power/supply/power_supply_core.c b/drivers/power/supply/power_supply_core.c
index e85361878450..529721660e68 100644
--- a/drivers/power/supply/power_supply_core.c
+++ b/drivers/power/supply/power_supply_core.c
@@ -156,8 +156,6 @@ static void power_supply_deferred_register_work(struct work_struct *work)
}

#ifdef CONFIG_OF
-#include <linux/of.h>
-
static int __power_supply_populate_supplied_from(struct device *dev,
void *data)
{
--
2.17.0



2019-01-21 07:17:03

by Sebastian Reichel

[permalink] [raw]
Subject: Re: [PATCH] power: supply: remove some duplicated includes

Hi,

On Wed, Dec 26, 2018 at 11:53:57AM -0500, Yangtao Li wrote:
> We include of.h twice. It's unnecessary,so
> just remove them.
>
> Signed-off-by: Yangtao Li <[email protected]>
> ---

Thanks, queued.

-- Sebastian

> drivers/power/supply/power_supply_core.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/power/supply/power_supply_core.c b/drivers/power/supply/power_supply_core.c
> index e85361878450..529721660e68 100644
> --- a/drivers/power/supply/power_supply_core.c
> +++ b/drivers/power/supply/power_supply_core.c
> @@ -156,8 +156,6 @@ static void power_supply_deferred_register_work(struct work_struct *work)
> }
>
> #ifdef CONFIG_OF
> -#include <linux/of.h>
> -
> static int __power_supply_populate_supplied_from(struct device *dev,
> void *data)
> {
> --
> 2.17.0
>


Attachments:
(No filename) (853.00 B)
signature.asc (849.00 B)
Download all attachments