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