Lines Matching refs:power_supply
205 struct power_supply;
237 int (*get_property)(struct power_supply *psy,
240 int (*set_property)(struct power_supply *psy,
248 int (*property_is_writeable)(struct power_supply *psy,
250 void (*external_power_changed)(struct power_supply *psy);
251 void (*set_charged)(struct power_supply *psy);
263 struct power_supply { struct
357 extern struct power_supply *power_supply_get_by_name(const char *name);
358 extern void power_supply_put(struct power_supply *psy);
360 extern struct power_supply *power_supply_get_by_phandle(struct device_node *np,
362 extern struct power_supply *devm_power_supply_get_by_phandle(
365 static inline struct power_supply *
368 static inline struct power_supply *
373 extern int power_supply_get_battery_info(struct power_supply *psy,
375 extern void power_supply_put_battery_info(struct power_supply *psy,
384 extern void power_supply_changed(struct power_supply *psy);
385 extern int power_supply_am_i_supplied(struct power_supply *psy);
387 struct power_supply *psy);
388 extern int power_supply_set_battery_charged(struct power_supply *psy);
396 extern int power_supply_get_property(struct power_supply *psy,
399 extern int power_supply_set_property(struct power_supply *psy,
402 extern int power_supply_property_is_writeable(struct power_supply *psy,
404 extern void power_supply_external_power_changed(struct power_supply *psy);
406 extern struct power_supply *__must_check
410 extern struct power_supply *__must_check
414 extern struct power_supply *__must_check
418 extern struct power_supply *__must_check
422 extern void power_supply_unregister(struct power_supply *psy);
423 extern int power_supply_powers(struct power_supply *psy, struct device *dev);
425 #define to_power_supply(device) container_of(device, struct power_supply, dev)
427 extern void *power_supply_get_drvdata(struct power_supply *psy);
486 int power_supply_add_hwmon_sysfs(struct power_supply *psy);
487 void power_supply_remove_hwmon_sysfs(struct power_supply *psy);
489 static inline int power_supply_add_hwmon_sysfs(struct power_supply *psy) in power_supply_add_hwmon_sysfs()
495 void power_supply_remove_hwmon_sysfs(struct power_supply *psy) {} in power_supply_remove_hwmon_sysfs()