blob: 1e3d59d76e60c8de3d7ecf2e3c2083ecace441e7 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Łukasz Majewskibd8479e2012-11-13 03:22:00 +00002/*
3 * Copyright (C) 2012 Samsung Electronics
4 * Lukasz Majewski <l.majewski@samsung.com>
Łukasz Majewskibd8479e2012-11-13 03:22:00 +00005 */
6
7#ifndef __POWER_BATTERY_H_
8#define __POWER_BATTERY_H_
9
10struct 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
20int power_bat_init(unsigned char bus);
21#endif /* __POWER_BATTERY_H_ */