Lines Matching refs:psy_desc
35 struct power_supply_desc psy_desc; member
107 old_type = data->psy_desc.type; in max8903_dcin()
110 data->psy_desc.type = POWER_SUPPLY_TYPE_MAINS; in max8903_dcin()
112 data->psy_desc.type = POWER_SUPPLY_TYPE_USB; in max8903_dcin()
114 data->psy_desc.type = POWER_SUPPLY_TYPE_BATTERY; in max8903_dcin()
116 if (old_type != data->psy_desc.type) in max8903_dcin()
146 old_type = data->psy_desc.type; in max8903_usbin()
149 data->psy_desc.type = POWER_SUPPLY_TYPE_MAINS; in max8903_usbin()
151 data->psy_desc.type = POWER_SUPPLY_TYPE_USB; in max8903_usbin()
153 data->psy_desc.type = POWER_SUPPLY_TYPE_BATTERY; in max8903_usbin()
155 if (old_type != data->psy_desc.type) in max8903_usbin()
284 data->psy_desc.name = "max8903_charger"; in max8903_probe()
285 data->psy_desc.type = (ta_in) ? POWER_SUPPLY_TYPE_MAINS : in max8903_probe()
288 data->psy_desc.get_property = max8903_get_property; in max8903_probe()
289 data->psy_desc.properties = max8903_charger_props; in max8903_probe()
290 data->psy_desc.num_properties = ARRAY_SIZE(max8903_charger_props); in max8903_probe()
294 data->psy = power_supply_register(dev, &data->psy_desc, &psy_cfg); in max8903_probe()