* [PATCH] power: supply: remove some duplicated includes
@ 2018-12-26 16:53 Yangtao Li
2019-01-20 21:39 ` Sebastian Reichel
0 siblings, 1 reply; 2+ messages in thread
From: Yangtao Li @ 2018-12-26 16:53 UTC (permalink / raw)
To: sre; +Cc: linux-pm, linux-kernel, Yangtao Li
We include of.h twice. It's unnecessary,so
just remove them.
Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] power: supply: remove some duplicated includes
2018-12-26 16:53 [PATCH] power: supply: remove some duplicated includes Yangtao Li
@ 2019-01-20 21:39 ` Sebastian Reichel
0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Reichel @ 2019-01-20 21:39 UTC (permalink / raw)
To: Yangtao Li; +Cc: linux-pm, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 853 bytes --]
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 <tiny.windzz@gmail.com>
> ---
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
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-01-20 21:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-26 16:53 [PATCH] power: supply: remove some duplicated includes Yangtao Li
2019-01-20 21:39 ` Sebastian Reichel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).