Skip to contentSkip to conversation

power: supply: remove some duplicated includes

PATCH In review Yangtao Li 2 participants 2 messages Dec 26, 2018 – Jan 20, 2019 Power supply

lore
Share & tools
lore

Yangtao Li

author
#0 lore raw

PATCH 1/1 power: supply: remove some duplicated includes

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

---
 drivers/power/supply/power_supply_core.c | 2 --
 1 file changed, 2 deletions(-)
drivers/power/supply/power_supply_core.c +0 -2
index e85361878450..529721660e68 100644
@@ -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)
 {
Signature · 1 line
2.17.0
#1 lore raw

Hi,

Quoted 5 lines · Yangtao Li

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

---

Thanks, queued.

-- Sebastian

Quoted 19 lines
 drivers/power/supply/power_supply_core.c | 2 --
 1 file changed, 2 deletions(-)
drivers/power/supply/power_supply_core.c +0 -2
index e85361878450..529721660e68 100644
@@ -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)
 {
Signature · 1 line
2.17.0