Commit b50df95c authored by Anton Vorontsov's avatar Anton Vorontsov

power_supply: Move of_node out of the #ifdef CONFIG_OF

Similar to linux/device.h, move of_node struct member out of the #ifdef
CONFIG_OF so that the drivers won't have to mess with #ifdefs in .c files.
Signed-off-by: default avatarAnton Vorontsov <anton@enomsg.org>
parent b52eafcd
...@@ -162,6 +162,8 @@ union power_supply_propval { ...@@ -162,6 +162,8 @@ union power_supply_propval {
const char *strval; const char *strval;
}; };
struct device_node;
struct power_supply { struct power_supply {
const char *name; const char *name;
enum power_supply_type type; enum power_supply_type type;
...@@ -173,9 +175,7 @@ struct power_supply { ...@@ -173,9 +175,7 @@ struct power_supply {
char **supplied_from; char **supplied_from;
size_t num_supplies; size_t num_supplies;
#ifdef CONFIG_OF
struct device_node *of_node; struct device_node *of_node;
#endif
int (*get_property)(struct power_supply *psy, int (*get_property)(struct power_supply *psy,
enum power_supply_property psp, enum power_supply_property psp,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment