Searched refs:battery_dev (Results 1 – 3 of 3) sorted by relevance
189 struct power_supply_dev battery_dev; member830 shield_dev->battery_dev.desc.properties = thunderstrike_battery_props; in thunderstrike_psy_create()831 shield_dev->battery_dev.desc.num_properties = in thunderstrike_psy_create()833 shield_dev->battery_dev.desc.get_property = thunderstrike_battery_get_property; in thunderstrike_psy_create()834 shield_dev->battery_dev.desc.type = POWER_SUPPLY_TYPE_BATTERY; in thunderstrike_psy_create()835 shield_dev->battery_dev.desc.name = in thunderstrike_psy_create()838 if (!shield_dev->battery_dev.desc.name) in thunderstrike_psy_create()841 shield_dev->battery_dev.psy = power_supply_register( in thunderstrike_psy_create()842 &hdev->dev, &shield_dev->battery_dev.desc, &psy_cfg); in thunderstrike_psy_create()843 if (IS_ERR(shield_dev->battery_dev.psy)) { in thunderstrike_psy_create()[all …]
671 platform_device_unregister(wm->battery_dev); in wm97xx_remove_battery()679 wm->battery_dev = platform_device_alloc("wm97xx-battery", -1); in wm97xx_add_battery()680 if (!wm->battery_dev) in wm97xx_add_battery()683 platform_set_drvdata(wm->battery_dev, wm); in wm97xx_add_battery()684 wm->battery_dev->dev.parent = wm->dev; in wm97xx_add_battery()685 wm->battery_dev->dev.platform_data = pdata; in wm97xx_add_battery()686 ret = platform_device_add(wm->battery_dev); in wm97xx_add_battery()688 platform_device_put(wm->battery_dev); in wm97xx_add_battery()
272 struct platform_device *battery_dev; member