Lines Matching full:power_supply

168 	POWER_SUPPLY_PROP_TYPE, /* use power_supply.type instead */
260 struct power_supply;
294 int (*get_property)(struct power_supply *psy,
297 int (*set_property)(struct power_supply *psy,
305 int (*property_is_writeable)(struct power_supply *psy,
307 void (*external_power_changed)(struct power_supply *psy);
308 void (*set_charged)(struct power_supply *psy);
322 struct power_supply { struct
437 extern struct power_supply *power_supply_get_by_name(const char *name);
438 extern void power_supply_put(struct power_supply *psy);
440 extern struct power_supply *power_supply_get_by_phandle(struct device_node *np,
444 struct power_supply **psy,
446 extern struct power_supply *devm_power_supply_get_by_phandle(
449 static inline struct power_supply *
455 struct power_supply **psy, in power_supply_get_by_phandle_array()
458 static inline struct power_supply *
463 extern int power_supply_get_battery_info(struct power_supply *psy,
465 extern void power_supply_put_battery_info(struct power_supply *psy,
477 extern void power_supply_changed(struct power_supply *psy);
478 extern int power_supply_am_i_supplied(struct power_supply *psy);
480 struct power_supply *psy);
481 extern int power_supply_set_battery_charged(struct power_supply *psy);
489 extern int power_supply_get_property(struct power_supply *psy,
493 extern int power_supply_set_property(struct power_supply *psy,
497 static inline int power_supply_set_property(struct power_supply *psy, in power_supply_set_property()
502 extern int power_supply_property_is_writeable(struct power_supply *psy,
504 extern void power_supply_external_power_changed(struct power_supply *psy);
506 extern struct power_supply *__must_check
510 extern struct power_supply *__must_check
514 extern struct power_supply *__must_check
518 extern struct power_supply *__must_check
522 extern void power_supply_unregister(struct power_supply *psy);
523 extern int power_supply_powers(struct power_supply *psy, struct device *dev);
525 #define to_power_supply(device) container_of(device, struct power_supply, dev)
527 extern void *power_supply_get_drvdata(struct power_supply *psy);
586 int power_supply_add_hwmon_sysfs(struct power_supply *psy);
587 void power_supply_remove_hwmon_sysfs(struct power_supply *psy);
589 static inline int power_supply_add_hwmon_sysfs(struct power_supply *psy) in power_supply_add_hwmon_sysfs()
595 void power_supply_remove_hwmon_sysfs(struct power_supply *psy) {} in power_supply_remove_hwmon_sysfs()