Skip to content

Commit

Permalink
power_supply: Move of_node out of the #ifdef CONFIG_OF
Browse files Browse the repository at this point in the history
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: Anton Vorontsov <anton@enomsg.org>
  • Loading branch information
Anton Vorontsov committed Jun 29, 2013
1 parent b52eafc commit b50df95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/linux/power_supply.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ union power_supply_propval {
const char *strval;
};

struct device_node;

struct power_supply {
const char *name;
enum power_supply_type type;
Expand All @@ -173,9 +175,7 @@ struct power_supply {

char **supplied_from;
size_t num_supplies;
#ifdef CONFIG_OF
struct device_node *of_node;
#endif

int (*get_property)(struct power_supply *psy,
enum power_supply_property psp,
Expand Down

0 comments on commit b50df95

Please sign in to comment.