Lines Matching refs:charger
90 struct power_supply charger;
96 #define to_acpi_ac(x) container_of(x, struct acpi_ac, charger);
251 kobject_uevent(&ac->charger.dev->kobj, KOBJ_CHANGE);
286 ac->charger.name = acpi_device_bid(device);
287 ac->charger.type = POWER_SUPPLY_TYPE_MAINS;
288 ac->charger.properties = ac_props;
289 ac->charger.num_properties = ARRAY_SIZE(ac_props);
290 ac->charger.get_property = get_ac_property;
291 power_supply_register(&ac->device->dev, &ac->charger);
321 kobject_uevent(&ac->charger.dev->kobj, KOBJ_CHANGE);
337 if (ac->charger.dev)
338 power_supply_unregister(&ac->charger);