Lines Matching refs:psy
61 struct power_supply psy;
262 isp->psy.type = POWER_SUPPLY_TYPE_USB_DCP;
265 isp->psy.type = POWER_SUPPLY_TYPE_USB;
274 if (isp->psy.type != POWER_SUPPLY_TYPE_USB_DCP) {
283 isp->psy.type = POWER_SUPPLY_TYPE_USB_CDP;
290 isp->psy.type = POWER_SUPPLY_TYPE_USB;
309 power_supply_changed(&isp->psy);
325 static int isp1704_charger_get_property(struct power_supply *psy,
330 container_of(psy, struct isp1704_charger, psy);
457 isp->psy.name = "isp1704";
458 isp->psy.type = POWER_SUPPLY_TYPE_USB;
459 isp->psy.properties = power_props;
460 isp->psy.num_properties = ARRAY_SIZE(power_props);
461 isp->psy.get_property = isp1704_charger_get_property;
463 ret = power_supply_register(isp->dev, &isp->psy);
501 power_supply_unregister(&isp->psy);
515 power_supply_unregister(&isp->psy);