Home
last modified time | relevance | path

Searched refs:psy_cfg (Results 1 – 25 of 80) sorted by relevance

1234

/linux/drivers/power/supply/
A Dtps65090-charger.c233 struct power_supply_config psy_cfg = {}; in tps65090_charger_probe() local
260 psy_cfg.supplied_to = pdata->supplied_to; in tps65090_charger_probe()
261 psy_cfg.num_supplicants = pdata->num_supplicants; in tps65090_charger_probe()
262 psy_cfg.of_node = pdev->dev.of_node; in tps65090_charger_probe()
263 psy_cfg.drv_data = cdata; in tps65090_charger_probe()
266 &psy_cfg); in tps65090_charger_probe()
A Dpda_power.c263 struct power_supply_config psy_cfg = {}; in pda_power_probe() local
311 psy_cfg.supplied_to = pdata->supplied_to; in pda_power_probe()
312 psy_cfg.num_supplicants = pdata->num_supplicants; in pda_power_probe()
314 psy_cfg.supplied_to = pda_power_supplied_to; in pda_power_probe()
315 psy_cfg.num_supplicants = ARRAY_SIZE(pda_power_supplied_to); in pda_power_probe()
330 &pda_psy_ac_desc, &psy_cfg); in pda_power_probe()
354 &psy_cfg); in pda_power_probe()
A Dsurface_charger.c199 struct power_supply_config psy_cfg = {}; in spwr_ac_register() local
211 psy_cfg.drv_data = ac; in spwr_ac_register()
212 psy_cfg.supplied_to = battery_supplied_to; in spwr_ac_register()
213 psy_cfg.num_supplicants = ARRAY_SIZE(battery_supplied_to); in spwr_ac_register()
215 ac->psy = devm_power_supply_register(&ac->sdev->dev, &ac->psy_desc, &psy_cfg); in spwr_ac_register()
A Dpcf50633-charger.c384 struct power_supply_config psy_cfg = {}; in pcf50633_mbc_probe() local
402 psy_cfg.supplied_to = mbc->pcf->pdata->batteries; in pcf50633_mbc_probe()
403 psy_cfg.num_supplicants = mbc->pcf->pdata->num_batteries; in pcf50633_mbc_probe()
404 psy_cfg.drv_data = mbc; in pcf50633_mbc_probe()
409 &psy_cfg); in pcf50633_mbc_probe()
415 usb_psy_cfg = psy_cfg; in pcf50633_mbc_probe()
427 &psy_cfg); in pcf50633_mbc_probe()
A Dgpio-charger.c255 struct power_supply_config psy_cfg = {}; in gpio_charger_probe() local
315 psy_cfg.of_node = dev->of_node; in gpio_charger_probe()
316 psy_cfg.drv_data = gpio_charger; in gpio_charger_probe()
321 psy_cfg.supplied_to = pdata->supplied_to; in gpio_charger_probe()
322 psy_cfg.num_supplicants = pdata->num_supplicants; in gpio_charger_probe()
332 &psy_cfg); in gpio_charger_probe()
A Dlego_ev3_battery.c158 struct power_supply_config psy_cfg = {}; in lego_ev3_battery_probe() local
201 psy_cfg.of_node = pdev->dev.of_node; in lego_ev3_battery_probe()
202 psy_cfg.drv_data = batt; in lego_ev3_battery_probe()
205 &psy_cfg); in lego_ev3_battery_probe()
A Dingenic-battery.c127 struct power_supply_config psy_cfg = {}; in ingenic_battery_probe() local
146 psy_cfg.drv_data = bat; in ingenic_battery_probe()
147 psy_cfg.of_node = dev->of_node; in ingenic_battery_probe()
149 bat->battery = devm_power_supply_register(dev, desc, &psy_cfg); in ingenic_battery_probe()
A Dlt3651-charger.c96 struct power_supply_config psy_cfg = {}; in lt3651_charger_probe() local
134 psy_cfg.of_node = pdev->dev.of_node; in lt3651_charger_probe()
135 psy_cfg.drv_data = lt3651_charger; in lt3651_charger_probe()
138 charger_desc, &psy_cfg); in lt3651_charger_probe()
A Dsbs-charger.c167 struct power_supply_config psy_cfg = {}; in sbs_probe() local
176 psy_cfg.of_node = client->dev.of_node; in sbs_probe()
177 psy_cfg.drv_data = chip; in sbs_probe()
194 chip->power_supply = devm_power_supply_register(&client->dev, &sbs_desc, &psy_cfg); in sbs_probe()
A Dacer_a500_battery.c225 struct power_supply_config psy_cfg = {}; in a500_battery_probe() local
234 psy_cfg.of_node = pdev->dev.parent->of_node; in a500_battery_probe()
235 psy_cfg.drv_data = bat; in a500_battery_probe()
243 &psy_cfg); in a500_battery_probe()
A Dbq24735-charger.c361 struct power_supply_config psy_cfg = {}; in bq24735_charger_probe() local
404 psy_cfg.supplied_to = charger->pdata->supplied_to; in bq24735_charger_probe()
405 psy_cfg.num_supplicants = charger->pdata->num_supplicants; in bq24735_charger_probe()
406 psy_cfg.of_node = client->dev.of_node; in bq24735_charger_probe()
407 psy_cfg.drv_data = charger; in bq24735_charger_probe()
450 &psy_cfg); in bq24735_charger_probe()
A Dwilco-charger.c172 struct power_supply_config psy_cfg = {}; in wilco_charge_probe() local
175 psy_cfg.drv_data = ec; in wilco_charge_probe()
176 psy = devm_power_supply_register(&pdev->dev, &wilco_ps_desc, &psy_cfg); in wilco_charge_probe()
A Dgoldfish_battery.c203 struct power_supply_config psy_cfg = {}; in goldfish_battery_probe() local
235 psy_cfg.drv_data = data; in goldfish_battery_probe()
237 data->ac = power_supply_register(&pdev->dev, &ac_desc, &psy_cfg); in goldfish_battery_probe()
242 &psy_cfg); in goldfish_battery_probe()
A Dmax8998_charger.c95 struct power_supply_config psy_cfg = {}; in max8998_battery_probe() local
175 psy_cfg.drv_data = max8998; in max8998_battery_probe()
179 &psy_cfg); in max8998_battery_probe()
A Drt5033_battery.c119 struct power_supply_config psy_cfg = {}; in rt5033_battery_probe() local
139 psy_cfg.drv_data = battery; in rt5033_battery_probe()
142 &rt5033_battery_desc, &psy_cfg); in rt5033_battery_probe()
A Dpmu_battery.c162 struct power_supply_config psy_cfg = {}; in pmu_bat_init() local
174 psy_cfg.drv_data = pbat; in pmu_bat_init()
178 &psy_cfg); in pmu_bat_init()
A Drx51_battery.c193 struct power_supply_config psy_cfg = {}; in rx51_battery_probe() local
210 psy_cfg.drv_data = di; in rx51_battery_probe()
230 di->bat = power_supply_register(di->dev, &di->bat_desc, &psy_cfg); in rx51_battery_probe()
A Daxp20x_ac_power.c325 struct power_supply_config psy_cfg = {}; in axp20x_ac_power_probe() local
368 psy_cfg.of_node = pdev->dev.of_node; in axp20x_ac_power_probe()
369 psy_cfg.drv_data = power; in axp20x_ac_power_probe()
373 &psy_cfg); in axp20x_ac_power_probe()
A Dmax8903_charger.c331 struct power_supply_config psy_cfg = {}; in max8903_probe() local
353 psy_cfg.of_node = dev->of_node; in max8903_probe()
354 psy_cfg.drv_data = data; in max8903_probe()
356 data->psy = devm_power_supply_register(dev, &data->psy_desc, &psy_cfg); in max8903_probe()
A Dmax8925_power.c507 struct power_supply_config psy_cfg = {}; /* Only for ac and usb */ in max8925_power_probe() local
528 psy_cfg.supplied_to = pdata->supplied_to; in max8925_power_probe()
529 psy_cfg.num_supplicants = pdata->num_supplicants; in max8925_power_probe()
531 info->ac = power_supply_register(&pdev->dev, &ac_desc, &psy_cfg); in max8925_power_probe()
538 info->usb = power_supply_register(&pdev->dev, &usb_desc, &psy_cfg); in max8925_power_probe()
A Dtwl4030_madc_battery.c196 struct power_supply_config psy_cfg = {}; in twl4030_madc_battery_probe() local
232 psy_cfg.drv_data = twl4030_madc_bat; in twl4030_madc_battery_probe()
235 &psy_cfg); in twl4030_madc_battery_probe()
A Dsbs-manager.c325 struct power_supply_config psy_cfg = {}; in sbsm_probe() local
381 psy_cfg.drv_data = data; in sbsm_probe()
382 psy_cfg.of_node = dev->of_node; in sbsm_probe()
383 data->psy = devm_power_supply_register(dev, psy_desc, &psy_cfg); in sbsm_probe()
A Dlp8727_charger.c444 struct power_supply_config psy_cfg = {}; /* Only for ac and usb */ in lp8727_register_psy() local
453 psy_cfg.supplied_to = battery_supplied_to; in lp8727_register_psy()
454 psy_cfg.num_supplicants = ARRAY_SIZE(battery_supplied_to); in lp8727_register_psy()
456 psy->ac = power_supply_register(pchg->dev, &lp8727_ac_desc, &psy_cfg); in lp8727_register_psy()
461 &psy_cfg); in lp8727_register_psy()
/linux/drivers/usb/typec/ucsi/
A Dpsy.c210 struct power_supply_config psy_cfg = {}; in ucsi_register_port_psy() local
214 psy_cfg.drv_data = con; in ucsi_register_port_psy()
215 psy_cfg.fwnode = dev_fwnode(dev); in ucsi_register_port_psy()
230 con->psy = power_supply_register(dev, &con->psy_desc, &psy_cfg); in ucsi_register_port_psy()
/linux/drivers/staging/nvec/
A Dnvec_power.c378 struct power_supply_config psy_cfg = {}; in nvec_power_probe() local
391 psy_cfg.supplied_to = nvec_power_supplied_to; in nvec_power_probe()
392 psy_cfg.num_supplicants = ARRAY_SIZE(nvec_power_supplied_to); in nvec_power_probe()
414 *psy = power_supply_register(&pdev->dev, psy_desc, &psy_cfg); in nvec_power_probe()

Completed in 35 milliseconds

1234