Lines Matching refs:power_supply
82 struct power_supply {
129 struct power_supply *battery;
315 static struct power_supply *find_supply(struct charger *charger,
319 struct power_supply *supply;
322 supply = node_to_item(node, struct power_supply, list);
329 static struct power_supply *add_supply(struct charger *charger,
333 struct power_supply *supply;
335 supply = calloc(1, sizeof(struct power_supply));
350 static void remove_supply(struct charger *charger, struct power_supply *supply)
422 struct power_supply *supply = NULL;
502 if (!strcmp(uevent->subsystem, "power_supply"))
979 coldboot(charger, "/sys/class/power_supply", "add");