Home
last modified time | relevance | path

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

1234

/linux-6.1.9/drivers/power/supply/
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()
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()
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()
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()
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()
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()
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()
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()
Dsbs-charger.c168 struct power_supply_config psy_cfg = {}; in sbs_probe() local
177 psy_cfg.of_node = client->dev.of_node; in sbs_probe()
178 psy_cfg.drv_data = chip; in sbs_probe()
195 chip->power_supply = devm_power_supply_register(&client->dev, &sbs_desc, &psy_cfg); in sbs_probe()
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()
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()
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()
Dgoldfish_battery.c203 struct power_supply_config psy_cfg = {}; in goldfish_battery_probe() local
233 psy_cfg.drv_data = data; in goldfish_battery_probe()
235 data->ac = power_supply_register(&pdev->dev, &ac_desc, &psy_cfg); in goldfish_battery_probe()
240 &psy_cfg); in goldfish_battery_probe()
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()
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()
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()
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()
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()
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()
Dip5xxx_power.c591 struct power_supply_config psy_cfg = {}; in ip5xxx_power_probe() local
604 psy_cfg.of_node = dev->of_node; in ip5xxx_power_probe()
605 psy_cfg.drv_data = ip5xxx; in ip5xxx_power_probe()
607 psy = devm_power_supply_register(dev, &ip5xxx_battery_desc, &psy_cfg); in ip5xxx_power_probe()
611 psy = devm_power_supply_register(dev, &ip5xxx_boost_desc, &psy_cfg); in ip5xxx_power_probe()
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()
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()
/linux-6.1.9/drivers/usb/typec/ucsi/
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-6.1.9/drivers/staging/nvec/
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()
/linux-6.1.9/drivers/acpi/
Dac.c219 struct power_supply_config psy_cfg = {}; in acpi_ac_add() local
240 psy_cfg.drv_data = ac; in acpi_ac_add()
248 &ac->charger_desc, &psy_cfg); in acpi_ac_add()

1234