Lines Matching refs:psy
27 * 6. Maybe unregister + reregister the psy device when we learn the actual
71 struct power_supply *psy;
185 struct power_supply *psy;
189 psy = chip->psy;
190 if (!psy)
232 chip->supplied = power_supply_am_i_supplied(psy);
283 if (chip->status != prev_status && psy)
284 power_supply_changed(psy);
297 static int ug3105_get_property(struct power_supply *psy,
301 struct ug3105_chip *chip = power_supply_get_drvdata(psy);
306 if (!chip->psy) {
350 static void ug3105_external_power_changed(struct power_supply *psy)
352 struct ug3105_chip *chip = power_supply_get_drvdata(psy);
385 struct power_supply *psy;
400 psy = devm_power_supply_register(dev, &ug3105_psy_desc, &psy_cfg);
401 if (IS_ERR(psy))
402 return PTR_ERR(psy);
404 ret = power_supply_get_battery_info(psy, &chip->info);
432 chip->psy = psy;