Lines Matching full:bat
31 #define ACPI_BATTERY_DIR_NAME "BAT%i"
55 struct power_supply *bat; member
551 battery->bat = power_supply_register(&sbs->device->dev, in acpi_battery_add()
553 if (IS_ERR(battery->bat)) { in acpi_battery_add()
554 result = PTR_ERR(battery->bat); in acpi_battery_add()
555 battery->bat = NULL; in acpi_battery_add()
570 if (battery->bat) in acpi_battery_remove()
571 power_supply_unregister(battery->bat); in acpi_battery_remove()
607 struct acpi_battery *bat; in acpi_sbs_callback() local
621 bat = &sbs->battery[id]; in acpi_sbs_callback()
622 saved_battery_state = bat->present; in acpi_sbs_callback()
623 acpi_battery_read(bat); in acpi_sbs_callback()
624 if (saved_battery_state == bat->present) in acpi_sbs_callback()
626 kobject_uevent(&bat->bat->dev.kobj, KOBJ_CHANGE); in acpi_sbs_callback()