Searched refs:battery_desc (Results 1 – 12 of 12) sorted by relevance
/linux/drivers/power/supply/ |
A 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()
|
A 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()
|
A 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()
|
A 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()
|
A 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/drivers/hid/ |
A D | hid-asus.c | 123 struct power_supply_desc battery_desc; member 729 drvdata->battery_desc.properties = asus_battery_props; in asus_battery_probe() 730 drvdata->battery_desc.num_properties = ARRAY_SIZE(asus_battery_props); in asus_battery_probe() 731 drvdata->battery_desc.get_property = asus_battery_get_property; in asus_battery_probe() 732 drvdata->battery_desc.type = POWER_SUPPLY_TYPE_BATTERY; in asus_battery_probe() 733 drvdata->battery_desc.use_for_apm = 0; in asus_battery_probe() 734 drvdata->battery_desc.name = devm_kasprintf(&hdev->dev, GFP_KERNEL, in asus_battery_probe() 738 if (!drvdata->battery_desc.name) in asus_battery_probe() 744 &(drvdata->battery_desc), &pscfg); in asus_battery_probe()
|
A 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()
|
A D | hid-playstation.c | 38 struct power_supply_desc battery_desc; member 431 dev->battery_desc.type = POWER_SUPPLY_TYPE_BATTERY; in ps_device_register_battery() 432 dev->battery_desc.properties = ps_power_supply_props; in ps_device_register_battery() 433 dev->battery_desc.num_properties = ARRAY_SIZE(ps_power_supply_props); in ps_device_register_battery() 434 dev->battery_desc.get_property = ps_battery_get_property; in ps_device_register_battery() 435 dev->battery_desc.name = devm_kasprintf(&dev->hdev->dev, GFP_KERNEL, in ps_device_register_battery() 437 if (!dev->battery_desc.name) in ps_device_register_battery() 440 battery = devm_power_supply_register(&dev->hdev->dev, &dev->battery_desc, &battery_cfg); in ps_device_register_battery()
|
A D | hid-wiimote-modules.c | 240 wdata->battery_desc.properties = 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() 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() 271 if (!wdata->battery_desc.name) in wiimod_battery_remove() 275 kfree(wdata->battery_desc.name); in wiimod_battery_remove() [all …]
|
A D | hid-nintendo.c | 454 struct power_supply_desc battery_desc; member 1973 ctlr->battery_desc.properties = joycon_battery_props; in joycon_power_supply_create() 1974 ctlr->battery_desc.num_properties = in joycon_power_supply_create() 1976 ctlr->battery_desc.get_property = joycon_battery_get_property; in joycon_power_supply_create() 1977 ctlr->battery_desc.type = POWER_SUPPLY_TYPE_BATTERY; in joycon_power_supply_create() 1978 ctlr->battery_desc.use_for_apm = 0; in joycon_power_supply_create() 1979 ctlr->battery_desc.name = devm_kasprintf(&hdev->dev, GFP_KERNEL, in joycon_power_supply_create() 1982 if (!ctlr->battery_desc.name) in joycon_power_supply_create() 1986 &ctlr->battery_desc, in joycon_power_supply_create()
|
A 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()
|
A D | hid-wiimote.h | 151 struct power_supply_desc battery_desc; member
|
Completed in 43 milliseconds