Home
last modified time | relevance | path

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

123

/drivers/power/supply/
Dgpio-charger.c131 struct power_supply_config psy_cfg = {}; in gpio_charger_probe() local
167 psy_cfg.supplied_to = pdata->supplied_to; in gpio_charger_probe()
168 psy_cfg.num_supplicants = pdata->num_supplicants; in gpio_charger_probe()
169 psy_cfg.of_node = pdev->dev.of_node; in gpio_charger_probe()
170 psy_cfg.drv_data = gpio_charger; in gpio_charger_probe()
186 charger_desc, &psy_cfg); in gpio_charger_probe()
Dtps65090-charger.c243 struct power_supply_config psy_cfg = {}; in tps65090_charger_probe() local
270 psy_cfg.supplied_to = pdata->supplied_to; in tps65090_charger_probe()
271 psy_cfg.num_supplicants = pdata->num_supplicants; in tps65090_charger_probe()
272 psy_cfg.of_node = pdev->dev.of_node; in tps65090_charger_probe()
273 psy_cfg.drv_data = cdata; in tps65090_charger_probe()
276 &psy_cfg); in tps65090_charger_probe()
Dpda_power.c266 struct power_supply_config psy_cfg = {}; in pda_power_probe() local
314 psy_cfg.supplied_to = pdata->supplied_to; in pda_power_probe()
315 psy_cfg.num_supplicants = pdata->num_supplicants; in pda_power_probe()
317 psy_cfg.supplied_to = pda_power_supplied_to; in pda_power_probe()
318 psy_cfg.num_supplicants = ARRAY_SIZE(pda_power_supplied_to); in pda_power_probe()
333 &pda_psy_ac_desc, &psy_cfg); in pda_power_probe()
357 &psy_cfg); in pda_power_probe()
Dpcf50633-charger.c394 struct power_supply_config psy_cfg = {}; in pcf50633_mbc_probe() local
412 psy_cfg.supplied_to = mbc->pcf->pdata->batteries; in pcf50633_mbc_probe()
413 psy_cfg.num_supplicants = mbc->pcf->pdata->num_batteries; in pcf50633_mbc_probe()
414 psy_cfg.drv_data = mbc; in pcf50633_mbc_probe()
419 &psy_cfg); in pcf50633_mbc_probe()
427 &psy_cfg); in pcf50633_mbc_probe()
436 &psy_cfg); in pcf50633_mbc_probe()
Dbq24735-charger.c339 struct power_supply_config psy_cfg = {}; in bq24735_charger_probe() local
382 psy_cfg.supplied_to = charger->pdata->supplied_to; in bq24735_charger_probe()
383 psy_cfg.num_supplicants = charger->pdata->num_supplicants; in bq24735_charger_probe()
384 psy_cfg.of_node = client->dev.of_node; in bq24735_charger_probe()
385 psy_cfg.drv_data = charger; in bq24735_charger_probe()
437 &psy_cfg); in bq24735_charger_probe()
Dgoldfish_battery.c170 struct power_supply_config psy_cfg = {}; in goldfish_battery_probe() local
201 psy_cfg.drv_data = data; in goldfish_battery_probe()
203 data->ac = power_supply_register(&pdev->dev, &ac_desc, &psy_cfg); in goldfish_battery_probe()
208 &psy_cfg); in goldfish_battery_probe()
Daxp20x_usb_power.c195 struct power_supply_config psy_cfg = {}; in axp20x_usb_power_probe() local
248 psy_cfg.of_node = pdev->dev.of_node; in axp20x_usb_power_probe()
249 psy_cfg.drv_data = power; in axp20x_usb_power_probe()
252 &psy_cfg); in axp20x_usb_power_probe()
Dmax8998_charger.c89 struct power_supply_config psy_cfg = {}; in max8998_battery_probe() local
169 psy_cfg.drv_data = max8998; in max8998_battery_probe()
173 &psy_cfg); in max8998_battery_probe()
Drt5033_battery.c122 struct power_supply_config psy_cfg = {}; in rt5033_battery_probe() local
142 psy_cfg.drv_data = battery; in rt5033_battery_probe()
145 &rt5033_battery_desc, &psy_cfg); in rt5033_battery_probe()
Dmax8997_charger.c102 struct power_supply_config psy_cfg = {}; in max8997_battery_probe() local
162 psy_cfg.drv_data = charger; in max8997_battery_probe()
166 &psy_cfg); in max8997_battery_probe()
Dpmu_battery.c165 struct power_supply_config psy_cfg = {}; in pmu_bat_init() local
177 psy_cfg.drv_data = pbat; in pmu_bat_init()
181 &psy_cfg); in pmu_bat_init()
Drx51_battery.c207 struct power_supply_config psy_cfg = {}; in rx51_battery_probe() local
224 psy_cfg.drv_data = di; in rx51_battery_probe()
244 di->bat = power_supply_register(di->dev, &di->bat_desc, &psy_cfg); in rx51_battery_probe()
Dmax8925_power.c509 struct power_supply_config psy_cfg = {}; /* Only for ac and usb */ in max8925_power_probe() local
530 psy_cfg.supplied_to = pdata->supplied_to; in max8925_power_probe()
531 psy_cfg.num_supplicants = pdata->num_supplicants; in max8925_power_probe()
533 info->ac = power_supply_register(&pdev->dev, &ac_desc, &psy_cfg); in max8925_power_probe()
540 info->usb = power_supply_register(&pdev->dev, &usb_desc, &psy_cfg); in max8925_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()
Dlp8727_charger.c448 struct power_supply_config psy_cfg = {}; /* Only for ac and usb */ in lp8727_register_psy() local
457 psy_cfg.supplied_to = battery_supplied_to; in lp8727_register_psy()
458 psy_cfg.num_supplicants = ARRAY_SIZE(battery_supplied_to); in lp8727_register_psy()
460 psy->ac = power_supply_register(pchg->dev, &lp8727_ac_desc, &psy_cfg); in lp8727_register_psy()
465 &psy_cfg); in lp8727_register_psy()
Dmax17040_battery.c213 struct power_supply_config psy_cfg = {}; in max17040_probe() local
227 psy_cfg.drv_data = chip; in max17040_probe()
230 &max17040_battery_desc, &psy_cfg); in max17040_probe()
Dmax8903_charger.c352 struct power_supply_config psy_cfg = {}; in max8903_probe() local
389 psy_cfg.of_node = dev->of_node; in max8903_probe()
390 psy_cfg.drv_data = data; in max8903_probe()
392 data->psy = devm_power_supply_register(dev, &data->psy_desc, &psy_cfg); in max8903_probe()
Dz2_battery.c192 struct power_supply_config psy_cfg = {}; in z2_batt_probe() local
209 psy_cfg.drv_data = charger; in z2_batt_probe()
239 &psy_cfg); in z2_batt_probe()
Dintel_mid_battery.c673 struct power_supply_config psy_cfg = {}; in probe() local
687 psy_cfg.drv_data = pbi; in probe()
708 pbi->batt = power_supply_register(dev, &pmic_usb_desc, &psy_cfg); in probe()
724 pbi->usb = power_supply_register(dev, &pmic_batt_desc, &psy_cfg); in probe()
D88pm860x_charger.c669 struct power_supply_config psy_cfg = {}; in pm860x_charger_probe() local
707 psy_cfg.drv_data = info; in pm860x_charger_probe()
708 psy_cfg.supplied_to = pm860x_supplied_to; in pm860x_charger_probe()
709 psy_cfg.num_supplicants = ARRAY_SIZE(pm860x_supplied_to); in pm860x_charger_probe()
711 &psy_cfg); in pm860x_charger_probe()
Dact8945a_charger.c581 struct power_supply_config psy_cfg = {}; in act8945a_charger_probe() local
621 psy_cfg.of_node = pdev->dev.of_node; in act8945a_charger_probe()
622 psy_cfg.drv_data = charger; in act8945a_charger_probe()
626 &psy_cfg); in act8945a_charger_probe()
Dgeneric-adc-battery.c244 struct power_supply_config psy_cfg = {}; in gab_probe() local
257 psy_cfg.drv_data = adc_bat; in gab_probe()
319 adc_bat->psy = power_supply_register(&pdev->dev, psy_desc, &psy_cfg); in gab_probe()
Djz4740-battery.c246 struct power_supply_config psy_cfg = {}; in jz_battery_probe() local
286 psy_cfg.drv_data = jz_battery; in jz_battery_probe()
339 &psy_cfg); in jz_battery_probe()
/drivers/staging/nvec/
Dnvec_power.c382 struct power_supply_config psy_cfg = {}; in nvec_power_probe() local
395 psy_cfg.supplied_to = nvec_power_supplied_to; in nvec_power_probe()
396 psy_cfg.num_supplicants = ARRAY_SIZE(nvec_power_supplied_to); in nvec_power_probe()
418 *psy = power_supply_register(&pdev->dev, psy_desc, &psy_cfg); in nvec_power_probe()
/drivers/acpi/
Dac.c321 struct power_supply_config psy_cfg = {}; in acpi_ac_add() local
342 psy_cfg.drv_data = ac; in acpi_ac_add()
355 &ac->charger_desc, &psy_cfg); in acpi_ac_add()

123