Searched refs:battery_desc (Results 1 – 10 of 10) sorted by relevance
/Linux-v5.4/drivers/power/supply/ |
D | ds2782_battery.c | 57 struct power_supply_desc battery_desc; member 322 kfree(info->battery_desc.name); in ds278x_battery_remove() 405 info->battery_desc.name = kasprintf(GFP_KERNEL, "%s-%d", in ds278x_battery_probe() 407 if (!info->battery_desc.name) { in ds278x_battery_probe() 419 ds278x_power_supply_init(&info->battery_desc); in ds278x_battery_probe() 428 &info->battery_desc, &psy_cfg); in ds278x_battery_probe() 440 kfree(info->battery_desc.name); in ds278x_battery_probe()
|
D | wm831x_power.c | 27 struct power_supply_desc battery_desc; member 597 power->battery_desc.name = power->battery_name; in wm831x_power_probe() 598 power->battery_desc.properties = wm831x_bat_props; in wm831x_power_probe() 599 power->battery_desc.num_properties = ARRAY_SIZE(wm831x_bat_props); in wm831x_power_probe() 600 power->battery_desc.get_property = wm831x_bat_get_prop; in wm831x_power_probe() 601 power->battery_desc.use_for_apm = 1; in wm831x_power_probe() 603 &power->battery_desc, in wm831x_power_probe()
|
D | goldfish_battery.c | 182 static const struct power_supply_desc battery_desc = { variable 241 data->battery = power_supply_register(&pdev->dev, &battery_desc, in goldfish_battery_probe()
|
D | max8925_power.c | 364 static const struct power_supply_desc battery_desc = { variable 545 info->battery = power_supply_register(&pdev->dev, &battery_desc, NULL); in max8925_power_probe()
|
D | da9150-charger.c | 506 static const struct power_supply_desc battery_desc = { variable 562 charger->battery = power_supply_register(dev, &battery_desc, NULL); in da9150_charger_probe()
|
/Linux-v5.4/drivers/hid/ |
D | hid-asus.c | 115 struct power_supply_desc battery_desc; member 579 drvdata->battery_desc.properties = asus_battery_props; in asus_battery_probe() 580 drvdata->battery_desc.num_properties = ARRAY_SIZE(asus_battery_props); in asus_battery_probe() 581 drvdata->battery_desc.get_property = asus_battery_get_property; in asus_battery_probe() 582 drvdata->battery_desc.type = POWER_SUPPLY_TYPE_BATTERY; in asus_battery_probe() 583 drvdata->battery_desc.use_for_apm = 0; in asus_battery_probe() 584 drvdata->battery_desc.name = devm_kasprintf(&hdev->dev, GFP_KERNEL, in asus_battery_probe() 588 if (!drvdata->battery_desc.name) in asus_battery_probe() 594 &(drvdata->battery_desc), &pscfg); in asus_battery_probe()
|
D | hid-steam.c | 123 struct power_supply_desc battery_desc; member 353 steam->battery_desc.type = POWER_SUPPLY_TYPE_BATTERY; in steam_battery_register() 354 steam->battery_desc.properties = steam_battery_props; in steam_battery_register() 355 steam->battery_desc.num_properties = ARRAY_SIZE(steam_battery_props); in steam_battery_register() 356 steam->battery_desc.get_property = steam_battery_get_property; in steam_battery_register() 357 steam->battery_desc.name = devm_kasprintf(&steam->hdev->dev, in steam_battery_register() 360 if (!steam->battery_desc.name) in steam_battery_register() 370 &steam->battery_desc, &battery_cfg); in steam_battery_register()
|
D | hid-wiimote-modules.c | 240 wdata->battery_desc.properties = wiimod_battery_props; in wiimod_battery_probe() 241 wdata->battery_desc.num_properties = ARRAY_SIZE(wiimod_battery_props); in wiimod_battery_probe() 242 wdata->battery_desc.get_property = wiimod_battery_get_property; in wiimod_battery_probe() 243 wdata->battery_desc.type = POWER_SUPPLY_TYPE_BATTERY; in wiimod_battery_probe() 244 wdata->battery_desc.use_for_apm = 0; in wiimod_battery_probe() 245 wdata->battery_desc.name = kasprintf(GFP_KERNEL, "wiimote_battery_%s", in wiimod_battery_probe() 247 if (!wdata->battery_desc.name) in wiimod_battery_probe() 251 &wdata->battery_desc, in wiimod_battery_probe() 263 kfree(wdata->battery_desc.name); in wiimod_battery_probe() 264 wdata->battery_desc.name = NULL; in wiimod_battery_probe() [all …]
|
D | hid-sony.c | 550 struct power_supply_desc battery_desc; member 2335 sc->battery_desc.properties = sony_battery_props; in sony_battery_probe() 2336 sc->battery_desc.num_properties = ARRAY_SIZE(sony_battery_props); in sony_battery_probe() 2337 sc->battery_desc.get_property = sony_battery_get_property; in sony_battery_probe() 2338 sc->battery_desc.type = POWER_SUPPLY_TYPE_BATTERY; in sony_battery_probe() 2339 sc->battery_desc.use_for_apm = 0; in sony_battery_probe() 2340 sc->battery_desc.name = devm_kasprintf(&hdev->dev, GFP_KERNEL, in sony_battery_probe() 2342 if (!sc->battery_desc.name) in sony_battery_probe() 2345 sc->battery = devm_power_supply_register(&hdev->dev, &sc->battery_desc, in sony_battery_probe()
|
D | hid-wiimote.h | 151 struct power_supply_desc battery_desc; member
|