Lines Matching refs:power_supply

197 struct power_supply;
226 int (*get_property)(struct power_supply *psy,
229 int (*set_property)(struct power_supply *psy,
237 int (*property_is_writeable)(struct power_supply *psy,
239 void (*external_power_changed)(struct power_supply *psy);
240 void (*set_charged)(struct power_supply *psy);
252 struct power_supply { struct
334 extern struct power_supply *power_supply_get_by_name(const char *name);
335 extern void power_supply_put(struct power_supply *psy);
337 extern struct power_supply *power_supply_get_by_phandle(struct device_node *np,
339 extern struct power_supply *devm_power_supply_get_by_phandle(
342 static inline struct power_supply *
345 static inline struct power_supply *
350 extern int power_supply_get_battery_info(struct power_supply *psy,
352 extern void power_supply_changed(struct power_supply *psy);
353 extern int power_supply_am_i_supplied(struct power_supply *psy);
354 int power_supply_get_property_from_supplier(struct power_supply *psy,
357 extern int power_supply_set_battery_charged(struct power_supply *psy);
365 extern int power_supply_get_property(struct power_supply *psy,
368 extern int power_supply_set_property(struct power_supply *psy,
371 extern int power_supply_property_is_writeable(struct power_supply *psy,
373 extern void power_supply_external_power_changed(struct power_supply *psy);
375 extern struct power_supply *__must_check
379 extern struct power_supply *__must_check
383 extern struct power_supply *__must_check
387 extern struct power_supply *__must_check
391 extern void power_supply_unregister(struct power_supply *psy);
392 extern int power_supply_powers(struct power_supply *psy, struct device *dev);
394 #define to_power_supply(device) container_of(device, struct power_supply, dev)
396 extern void *power_supply_get_drvdata(struct power_supply *psy);