Lines Matching refs:psy
172 struct power_supply psy;
455 power_supply_changed(&bat->psy);
496 static int da9052_bat_get_property(struct power_supply *psy,
502 struct da9052_battery *bat = container_of(psy, struct da9052_battery,
503 psy);
603 bat->psy = template_battery;
611 bat->psy.use_for_apm = pdata->use_for_apm;
613 bat->psy.use_for_apm = 1;
628 ret = power_supply_register(&pdev->dev, &bat->psy);
649 power_supply_unregister(&bat->psy);