Home
last modified time | relevance | path

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

/drivers/hid/
Dhid-steelseries.c31 struct power_supply_desc battery_desc; member
481 sd->battery_desc.type = POWER_SUPPLY_TYPE_BATTERY; in steelseries_headset_battery_register()
482 sd->battery_desc.properties = steelseries_headset_battery_props; in steelseries_headset_battery_register()
483 sd->battery_desc.num_properties = ARRAY_SIZE(steelseries_headset_battery_props); in steelseries_headset_battery_register()
484 sd->battery_desc.get_property = steelseries_headset_battery_get_property; in steelseries_headset_battery_register()
485 sd->battery_desc.use_for_apm = 0; in steelseries_headset_battery_register()
487 sd->battery_desc.name = devm_kasprintf(&sd->hdev->dev, GFP_KERNEL, in steelseries_headset_battery_register()
489 if (!sd->battery_desc.name) in steelseries_headset_battery_register()
497 &sd->battery_desc, &battery_cfg); in steelseries_headset_battery_register()
Dhid-asus.c125 struct power_supply_desc battery_desc; member
735 drvdata->battery_desc.properties = asus_battery_props; in asus_battery_probe()
736 drvdata->battery_desc.num_properties = ARRAY_SIZE(asus_battery_props); in asus_battery_probe()
737 drvdata->battery_desc.get_property = asus_battery_get_property; in asus_battery_probe()
738 drvdata->battery_desc.type = POWER_SUPPLY_TYPE_BATTERY; in asus_battery_probe()
739 drvdata->battery_desc.use_for_apm = 0; in asus_battery_probe()
740 drvdata->battery_desc.name = devm_kasprintf(&hdev->dev, GFP_KERNEL, in asus_battery_probe()
744 if (!drvdata->battery_desc.name) in asus_battery_probe()
750 &(drvdata->battery_desc), &pscfg); in asus_battery_probe()
Dhid-steam.c133 struct power_supply_desc battery_desc; member
446 steam->battery_desc.type = POWER_SUPPLY_TYPE_BATTERY; in steam_battery_register()
447 steam->battery_desc.properties = steam_battery_props; in steam_battery_register()
448 steam->battery_desc.num_properties = ARRAY_SIZE(steam_battery_props); in steam_battery_register()
449 steam->battery_desc.get_property = steam_battery_get_property; in steam_battery_register()
450 steam->battery_desc.name = devm_kasprintf(&steam->hdev->dev, in steam_battery_register()
453 if (!steam->battery_desc.name) in steam_battery_register()
463 &steam->battery_desc, &battery_cfg); in steam_battery_register()
Dhid-sony.c494 struct power_supply_desc battery_desc; member
1672 sc->battery_desc.properties = sony_battery_props; in sony_battery_probe()
1673 sc->battery_desc.num_properties = ARRAY_SIZE(sony_battery_props); in sony_battery_probe()
1674 sc->battery_desc.get_property = sony_battery_get_property; in sony_battery_probe()
1675 sc->battery_desc.type = POWER_SUPPLY_TYPE_BATTERY; in sony_battery_probe()
1676 sc->battery_desc.use_for_apm = 0; in sony_battery_probe()
1677 sc->battery_desc.name = devm_kasprintf(&hdev->dev, GFP_KERNEL, in sony_battery_probe()
1679 if (!sc->battery_desc.name) in sony_battery_probe()
1682 sc->battery = devm_power_supply_register(&hdev->dev, &sc->battery_desc, in sony_battery_probe()
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 …]
Dhid-nintendo.c455 struct power_supply_desc battery_desc; member
2071 ctlr->battery_desc.properties = joycon_battery_props; in joycon_power_supply_create()
2072 ctlr->battery_desc.num_properties = in joycon_power_supply_create()
2074 ctlr->battery_desc.get_property = joycon_battery_get_property; in joycon_power_supply_create()
2075 ctlr->battery_desc.type = POWER_SUPPLY_TYPE_BATTERY; in joycon_power_supply_create()
2076 ctlr->battery_desc.use_for_apm = 0; in joycon_power_supply_create()
2077 ctlr->battery_desc.name = devm_kasprintf(&hdev->dev, GFP_KERNEL, in joycon_power_supply_create()
2080 if (!ctlr->battery_desc.name) in joycon_power_supply_create()
2084 &ctlr->battery_desc, in joycon_power_supply_create()
Dhid-playstation.c38 struct power_supply_desc battery_desc; member
666 dev->battery_desc.type = POWER_SUPPLY_TYPE_BATTERY; in ps_device_register_battery()
667 dev->battery_desc.properties = ps_power_supply_props; in ps_device_register_battery()
668 dev->battery_desc.num_properties = ARRAY_SIZE(ps_power_supply_props); in ps_device_register_battery()
669 dev->battery_desc.get_property = ps_battery_get_property; in ps_device_register_battery()
670 dev->battery_desc.name = devm_kasprintf(&dev->hdev->dev, GFP_KERNEL, in ps_device_register_battery()
672 if (!dev->battery_desc.name) in ps_device_register_battery()
675 battery = devm_power_supply_register(&dev->hdev->dev, &dev->battery_desc, &battery_cfg); in ps_device_register_battery()
Dhid-wiimote.h152 struct power_supply_desc battery_desc; member
/drivers/power/supply/
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()
Dwm831x_power.c27 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()
Dgoldfish_battery.c182 static const struct power_supply_desc battery_desc = { variable
239 data->battery = power_supply_register(&pdev->dev, &battery_desc, in goldfish_battery_probe()
Dmax8925_power.c364 static const struct power_supply_desc battery_desc = { variable
545 info->battery = power_supply_register(&pdev->dev, &battery_desc, NULL); in max8925_power_probe()
Dda9150-charger.c499 static const struct power_supply_desc battery_desc = { variable
555 charger->battery = power_supply_register(dev, &battery_desc, NULL); in da9150_charger_probe()