File tree Expand file tree Collapse file tree 2 files changed +17
-13
lines changed Expand file tree Collapse file tree 2 files changed +17
-13
lines changed Original file line number Diff line number Diff line change @@ -44,3 +44,20 @@ static inline int power_supply_create_triggers(struct power_supply *psy)
44
44
static inline void power_supply_remove_triggers (struct power_supply * psy ) {}
45
45
46
46
#endif /* CONFIG_LEDS_TRIGGERS */
47
+
48
+ #ifdef CONFIG_POWER_SUPPLY_HWMON
49
+
50
+ int power_supply_add_hwmon_sysfs (struct power_supply * psy );
51
+ void power_supply_remove_hwmon_sysfs (struct power_supply * psy );
52
+
53
+ #else
54
+
55
+ static inline int power_supply_add_hwmon_sysfs (struct power_supply * psy )
56
+ {
57
+ return 0 ;
58
+ }
59
+
60
+ static inline
61
+ void power_supply_remove_hwmon_sysfs (struct power_supply * psy ) {}
62
+
63
+ #endif /* CONFIG_POWER_SUPPLY_HWMON */
Original file line number Diff line number Diff line change @@ -937,19 +937,6 @@ static inline bool power_supply_is_watt_property(enum power_supply_property psp)
937
937
return false;
938
938
}
939
939
940
- #ifdef CONFIG_POWER_SUPPLY_HWMON
941
- int power_supply_add_hwmon_sysfs (struct power_supply * psy );
942
- void power_supply_remove_hwmon_sysfs (struct power_supply * psy );
943
- #else
944
- static inline int power_supply_add_hwmon_sysfs (struct power_supply * psy )
945
- {
946
- return 0 ;
947
- }
948
-
949
- static inline
950
- void power_supply_remove_hwmon_sysfs (struct power_supply * psy ) {}
951
- #endif
952
-
953
940
#ifdef CONFIG_SYSFS
954
941
ssize_t power_supply_charge_behaviour_show (struct device * dev ,
955
942
unsigned int available_behaviours ,
You can’t perform that action at this time.
0 commit comments