blob: dc8d153c19cbffc10ecfde0ba52bbb1bbfe1306c [file] [log] [blame]
Łukasz Majewskibd8479e2012-11-13 03:22:00 +00001/*
2 * Copyright (C) 2012 Samsung Electronics
3 * Lukasz Majewski <l.majewski@samsung.com>
4 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Łukasz Majewskibd8479e2012-11-13 03:22:00 +00006 */
7
8#ifndef __POWER_BATTERY_H_
9#define __POWER_BATTERY_H_
10
11struct 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
21int power_bat_init(unsigned char bus);
22#endif /* __POWER_BATTERY_H_ */