blob: f1fd25c9d943265579e3e64810ed42adab467851 [file] [log] [blame]
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07001/* Copyright (c) 2011, Code Aurora Forum. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13#ifndef __PMIC8058_CHARGER_H__
14#define __PMIC8058_CHARGER_H__
15
16#if defined(CONFIG_BATTERY_MSM8X60) || defined(CONFIG_BATTERY_MSM8X60_MODULE)
17int pmic8058_get_charge_batt(void);
18int pmic8058_set_charge_batt(int);
19#else
20int pmic8058_get_charge_batt(void)
21{
22 return -ENXIO;
23}
24int pmic8058_set_charge_batt(int)
25{
26 return -ENXIO;
27}
28#endif
29#endif /* __PMIC8058_CHARGER_H__ */