Lines Matching full:power_supply
161 POWER_SUPPLY_PROP_TYPE, /* use power_supply.type instead */
215 struct power_supply;
247 int (*get_property)(struct power_supply *psy,
250 int (*set_property)(struct power_supply *psy,
258 int (*property_is_writeable)(struct power_supply *psy,
260 void (*external_power_changed)(struct power_supply *psy);
261 void (*set_charged)(struct power_supply *psy);
273 struct power_supply { struct
384 extern struct power_supply *power_supply_get_by_name(const char *name);
385 extern void power_supply_put(struct power_supply *psy);
387 extern struct power_supply *power_supply_get_by_phandle(struct device_node *np,
389 extern struct power_supply *devm_power_supply_get_by_phandle(
392 static inline struct power_supply *
395 static inline struct power_supply *
400 extern int power_supply_get_battery_info(struct power_supply *psy,
402 extern void power_supply_put_battery_info(struct power_supply *psy,
414 extern void power_supply_changed(struct power_supply *psy);
415 extern int power_supply_am_i_supplied(struct power_supply *psy);
417 struct power_supply *psy);
418 extern int power_supply_set_battery_charged(struct power_supply *psy);
426 extern int power_supply_get_property(struct power_supply *psy,
429 extern int power_supply_set_property(struct power_supply *psy,
432 extern int power_supply_property_is_writeable(struct power_supply *psy,
434 extern void power_supply_external_power_changed(struct power_supply *psy);
436 extern struct power_supply *__must_check
440 extern struct power_supply *__must_check
444 extern struct power_supply *__must_check
448 extern struct power_supply *__must_check
452 extern void power_supply_unregister(struct power_supply *psy);
453 extern int power_supply_powers(struct power_supply *psy, struct device *dev);
455 #define to_power_supply(device) container_of(device, struct power_supply, dev)
457 extern void *power_supply_get_drvdata(struct power_supply *psy);
516 int power_supply_add_hwmon_sysfs(struct power_supply *psy);
517 void power_supply_remove_hwmon_sysfs(struct power_supply *psy);
519 static inline int power_supply_add_hwmon_sysfs(struct power_supply *psy) in power_supply_add_hwmon_sysfs()
525 void power_supply_remove_hwmon_sysfs(struct power_supply *psy) {} in power_supply_remove_hwmon_sysfs()