Home
last modified time | relevance | path

Searched refs:battery_desc (Results 1 – 12 of 12) sorted by relevance

/linux/drivers/power/supply/
H A Dds2782_battery.c57 struct power_supply_desc battery_desc; member
322 kfree(info->battery_desc.name); in ds278x_battery_remove()
403 info->battery_desc.name = kasprintf(GFP_KERNEL, "%s-%d", in ds278x_battery_probe()
405 if (!info->battery_desc.name) { in ds278x_battery_probe()
417 ds278x_power_supply_init(&info->battery_desc); in ds278x_battery_probe()
426 &info->battery_desc, &psy_cfg); in ds278x_battery_probe()
438 kfree(info->battery_desc.name); in ds278x_battery_probe()
H A Dwm831x_power.c27 struct power_supply_desc battery_desc; member
600 power->battery_desc.name = power->battery_name; in wm831x_power_probe()
601 power->battery_desc.properties = wm831x_bat_props; in wm831x_power_probe()
602 power->battery_desc.num_properties = ARRAY_SIZE(wm831x_bat_props); in wm831x_power_probe()
603 power->battery_desc.get_property = wm831x_bat_get_prop; in wm831x_power_probe()
604 power->battery_desc.use_for_apm = 1; in wm831x_power_probe()
606 &power->battery_desc, in wm831x_power_probe()
H A Dgoldfish_battery.c182 static const struct power_supply_desc battery_desc = { variable
242 &battery_desc, in goldfish_battery_probe()
H A Dmax8925_power.c364 static const struct power_supply_desc battery_desc = { variable
540 info->battery = devm_power_supply_register(&pdev->dev, &battery_desc, NULL); in max8925_power_probe()
H A Dda9150-charger.c499 static const struct power_supply_desc battery_desc = { variable
545 charger->battery = devm_power_supply_register(dev, &battery_desc, NULL); in da9150_charger_probe()
/linux/drivers/hid/
H A Dhid-steelseries.c31 struct power_supply_desc battery_desc; member
494 sd->battery_desc.type = POWER_SUPPLY_TYPE_BATTERY; in steelseries_headset_battery_register()
495 sd->battery_desc.properties = steelseries_headset_battery_props; in steelseries_headset_battery_register()
496 sd->battery_desc.num_properties = ARRAY_SIZE(steelseries_headset_battery_props); in steelseries_headset_battery_register()
497 sd->battery_desc.get_property = steelseries_headset_battery_get_property; in steelseries_headset_battery_register()
498 sd->battery_desc.use_for_apm = 0; in steelseries_headset_battery_register()
500 sd->battery_desc.name = devm_kasprintf(&sd->hdev->dev, GFP_KERNEL, in steelseries_headset_battery_register()
502 if (!sd->battery_desc.name) in steelseries_headset_battery_register()
510 &sd->battery_desc, &battery_cfg); in steelseries_headset_battery_register()
H A Dhid-asus.c125 struct power_supply_desc battery_desc; member
708 drvdata->battery_desc.properties = asus_battery_props; in asus_battery_probe()
709 drvdata->battery_desc.num_properties = ARRAY_SIZE(asus_battery_props); in asus_battery_probe()
710 drvdata->battery_desc.get_property = asus_battery_get_property; in asus_battery_probe()
711 drvdata->battery_desc.type = POWER_SUPPLY_TYPE_BATTERY; in asus_battery_probe()
712 drvdata->battery_desc.use_for_apm = 0; in asus_battery_probe()
713 drvdata->battery_desc.name = devm_kasprintf(&hdev->dev, GFP_KERNEL, in asus_battery_probe()
717 if (!drvdata->battery_desc.name) in asus_battery_probe()
723 &(drvdata->battery_desc), &pscfg); in asus_battery_probe()
H A Dhid-sony.c494 struct power_supply_desc battery_desc; member
1673 sc->battery_desc.properties = sony_battery_props; in sony_battery_probe()
1674 sc->battery_desc.num_properties = ARRAY_SIZE(sony_battery_props); in sony_battery_probe()
1675 sc->battery_desc.get_property = sony_battery_get_property; in sony_battery_probe()
1676 sc->battery_desc.type = POWER_SUPPLY_TYPE_BATTERY; in sony_battery_probe()
1677 sc->battery_desc.use_for_apm = 0; in sony_battery_probe()
1678 sc->battery_desc.name = devm_kasprintf(&hdev->dev, GFP_KERNEL, in sony_battery_probe()
1680 if (!sc->battery_desc.name) in sony_battery_probe()
1683 sc->battery = devm_power_supply_register(&hdev->dev, &sc->battery_desc, in sony_battery_probe()
H A Dhid-wiimote-modules.c240 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 …]
H A Dhid-nintendo.c611 struct power_supply_desc battery_desc; member
2393 ctlr->battery_desc.properties = joycon_battery_props; in joycon_power_supply_create()
2394 ctlr->battery_desc.num_properties = in joycon_power_supply_create()
2396 ctlr->battery_desc.get_property = joycon_battery_get_property; in joycon_power_supply_create()
2397 ctlr->battery_desc.type = POWER_SUPPLY_TYPE_BATTERY; in joycon_power_supply_create()
2398 ctlr->battery_desc.use_for_apm = 0; in joycon_power_supply_create()
2399 ctlr->battery_desc.name = devm_kasprintf(&hdev->dev, GFP_KERNEL, in joycon_power_supply_create()
2402 if (!ctlr->battery_desc.name) in joycon_power_supply_create()
2406 &ctlr->battery_desc, in joycon_power_supply_create()
H A Dhid-playstation.c43 struct power_supply_desc battery_desc; member
673 dev->battery_desc.type = POWER_SUPPLY_TYPE_BATTERY; in ps_device_register_battery()
674 dev->battery_desc.properties = ps_power_supply_props; in ps_device_register_battery()
675 dev->battery_desc.num_properties = ARRAY_SIZE(ps_power_supply_props); in ps_device_register_battery()
676 dev->battery_desc.get_property = ps_battery_get_property; in ps_device_register_battery()
677 dev->battery_desc.name = devm_kasprintf(&dev->hdev->dev, GFP_KERNEL, in ps_device_register_battery()
679 if (!dev->battery_desc.name) in ps_device_register_battery()
682 battery = devm_power_supply_register(&dev->hdev->dev, &dev->battery_desc, &battery_cfg); in ps_device_register_battery()
H A Dhid-wiimote.h152 struct power_supply_desc battery_desc; member