Lines Matching refs:battery_desc
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()
271 if (!wdata->battery_desc.name) in wiimod_battery_remove()
275 kfree(wdata->battery_desc.name); in wiimod_battery_remove()
276 wdata->battery_desc.name = NULL; in wiimod_battery_remove()