Lines Matching defs:bat
56 struct power_supply bat;
249 if (power_supply_am_i_supplied(&di->bat)) {
282 power_supply_changed(&di->bat);
342 bat);
373 if (!power_supply_am_i_supplied(&di->bat))
519 di->bat.name = dev_name(&pdev->dev);
520 di->bat.type = POWER_SUPPLY_TYPE_BATTERY;
521 di->bat.properties = ds2760_battery_props;
522 di->bat.num_properties = ARRAY_SIZE(ds2760_battery_props);
523 di->bat.get_property = ds2760_battery_get_property;
524 di->bat.set_property = ds2760_battery_set_property;
525 di->bat.property_is_writeable =
527 di->bat.set_charged = ds2760_battery_set_charged;
528 di->bat.external_power_changed =
552 retval = power_supply_register(&pdev->dev, &di->bat);
571 power_supply_unregister(&di->bat);
588 power_supply_unregister(&di->bat);
610 power_supply_changed(&di->bat);