battery.h 436 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2012 Samsung Electronics
  4. * Lukasz Majewski <l.majewski@samsung.com>
  5. */
  6. #ifndef __POWER_BATTERY_H_
  7. #define __POWER_BATTERY_H_
  8. struct battery {
  9. unsigned int version;
  10. unsigned int state_of_chrg;
  11. unsigned int time_to_empty;
  12. unsigned int capacity;
  13. unsigned int voltage_uV;
  14. unsigned int state;
  15. };
  16. int power_bat_init(unsigned char bus);
  17. #endif /* __POWER_BATTERY_H_ */