Searched refs:battery_desc (Results 1 – 12 of 12) sorted by relevance
/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() 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()
|
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 239 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()
|
/drivers/hid/ |
D | hid-steam.c | 123 struct power_supply_desc battery_desc; member 363 steam->battery_desc.type = POWER_SUPPLY_TYPE_BATTERY; in steam_battery_register() 364 steam->battery_desc.properties = steam_battery_props; in steam_battery_register() 365 steam->battery_desc.num_properties = ARRAY_SIZE(steam_battery_props); in steam_battery_register() 366 steam->battery_desc.get_property = steam_battery_get_property; in steam_battery_register() 367 steam->battery_desc.name = devm_kasprintf(&steam->hdev->dev, in steam_battery_register() 370 if (!steam->battery_desc.name) in steam_battery_register() 380 &steam->battery_desc, &battery_cfg); in steam_battery_register()
|
D | hid-asus.c | 124 struct power_supply_desc battery_desc; member 750 drvdata->battery_desc.properties = asus_battery_props; in asus_battery_probe() 751 drvdata->battery_desc.num_properties = ARRAY_SIZE(asus_battery_props); in asus_battery_probe() 752 drvdata->battery_desc.get_property = asus_battery_get_property; in asus_battery_probe() 753 drvdata->battery_desc.type = POWER_SUPPLY_TYPE_BATTERY; in asus_battery_probe() 754 drvdata->battery_desc.use_for_apm = 0; in asus_battery_probe() 755 drvdata->battery_desc.name = devm_kasprintf(&hdev->dev, GFP_KERNEL, in asus_battery_probe() 759 if (!drvdata->battery_desc.name) in asus_battery_probe() 765 &(drvdata->battery_desc), &pscfg); in asus_battery_probe()
|
D | hid-playstation.c | 38 struct power_supply_desc battery_desc; member 442 dev->battery_desc.type = POWER_SUPPLY_TYPE_BATTERY; in ps_device_register_battery() 443 dev->battery_desc.properties = ps_power_supply_props; in ps_device_register_battery() 444 dev->battery_desc.num_properties = ARRAY_SIZE(ps_power_supply_props); in ps_device_register_battery() 445 dev->battery_desc.get_property = ps_battery_get_property; in ps_device_register_battery() 446 dev->battery_desc.name = devm_kasprintf(&dev->hdev->dev, GFP_KERNEL, in ps_device_register_battery() 448 if (!dev->battery_desc.name) in ps_device_register_battery() 451 battery = devm_power_supply_register(&dev->hdev->dev, &dev->battery_desc, &battery_cfg); in ps_device_register_battery()
|
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-nintendo.c | 453 struct power_supply_desc battery_desc; member 1994 ctlr->battery_desc.properties = joycon_battery_props; in joycon_power_supply_create() 1995 ctlr->battery_desc.num_properties = in joycon_power_supply_create() 1997 ctlr->battery_desc.get_property = joycon_battery_get_property; in joycon_power_supply_create() 1998 ctlr->battery_desc.type = POWER_SUPPLY_TYPE_BATTERY; in joycon_power_supply_create() 1999 ctlr->battery_desc.use_for_apm = 0; in joycon_power_supply_create() 2000 ctlr->battery_desc.name = devm_kasprintf(&hdev->dev, GFP_KERNEL, in joycon_power_supply_create() 2003 if (!ctlr->battery_desc.name) in joycon_power_supply_create() 2007 &ctlr->battery_desc, in joycon_power_supply_create()
|
D | hid-sony.c | 578 struct power_supply_desc battery_desc; member 2491 sc->battery_desc.properties = sony_battery_props; in sony_battery_probe() 2492 sc->battery_desc.num_properties = ARRAY_SIZE(sony_battery_props); in sony_battery_probe() 2493 sc->battery_desc.get_property = sony_battery_get_property; in sony_battery_probe() 2494 sc->battery_desc.type = POWER_SUPPLY_TYPE_BATTERY; in sony_battery_probe() 2495 sc->battery_desc.use_for_apm = 0; in sony_battery_probe() 2496 sc->battery_desc.name = devm_kasprintf(&hdev->dev, GFP_KERNEL, in sony_battery_probe() 2498 if (!sc->battery_desc.name) in sony_battery_probe() 2501 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
|