Łukasz Majewski | bd8479e | 2012-11-13 03:22:00 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2012 Samsung Electronics |
| 3 | * Lukasz Majewski <l.majewski@samsung.com> |
| 4 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Łukasz Majewski | bd8479e | 2012-11-13 03:22:00 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef __POWER_BATTERY_H_ |
| 9 | #define __POWER_BATTERY_H_ |
| 10 | |
| 11 | struct battery { |
| 12 | unsigned int version; |
| 13 | unsigned int state_of_chrg; |
| 14 | unsigned int time_to_empty; |
| 15 | unsigned int capacity; |
| 16 | unsigned int voltage_uV; |
| 17 | |
| 18 | unsigned int state; |
| 19 | }; |
| 20 | |
| 21 | int power_bat_init(unsigned char bus); |
| 22 | #endif /* __POWER_BATTERY_H_ */ |