summaryrefslogtreecommitdiff
path: root/drivers/power/supply/power_supply.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/power/supply/power_supply.h')
-rw-r--r--drivers/power/supply/power_supply.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/supply/power_supply.h b/drivers/power/supply/power_supply.h
index 7d05756398b9..06749a534db4 100644
--- a/drivers/power/supply/power_supply.h
+++ b/drivers/power/supply/power_supply.h
@@ -13,16 +13,16 @@ struct device;
struct device_type;
struct power_supply;
-extern const struct attribute_group power_supply_attr_group;
-
#ifdef CONFIG_SYSFS
extern void power_supply_init_attrs(void);
extern int power_supply_uevent(const struct device *dev, struct kobj_uevent_env *env);
+extern const struct attribute_group power_supply_attr_group;
#else
static inline void power_supply_init_attrs(void) {}
+static const struct attribute_group power_supply_attr_group;
#define power_supply_uevent NULL
#endif /* CONFIG_SYSFS */