aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/wm97xx_batt.h
diff options
context:
space:
mode:
authorMarek VaĊĦut <marek.vasut@gmail.com>2008-09-11 14:37:32 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-10-02 17:48:34 -0400
commit4e9687d9c843dc34d368358a36f5f1610e4fbab3 (patch)
tree54ee159fff8a1b6064cbc1f4e97f8c4d918c5d02 /include/linux/wm97xx_batt.h
parentc49e1e63a9c7893d9ff9be4258d86ddc5485d712 (diff)
[ARM] 5248/1: wm97xx generic battery driver
This patch adds generic battery driver for wm97xx chips. Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Acked-by: Anton Vorontsov <cbouatmailru@gmail.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/linux/wm97xx_batt.h')
-rw-r--r--include/linux/wm97xx_batt.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/linux/wm97xx_batt.h b/include/linux/wm97xx_batt.h
new file mode 100644
index 000000000000..9681d1ab0e4f
--- /dev/null
+++ b/include/linux/wm97xx_batt.h
@@ -0,0 +1,26 @@
1#ifndef _LINUX_WM97XX_BAT_H
2#define _LINUX_WM97XX_BAT_H
3
4#include <linux/wm97xx.h>
5
6struct wm97xx_batt_info {
7 int batt_aux;
8 int temp_aux;
9 int charge_gpio;
10 int min_voltage;
11 int max_voltage;
12 int batt_div;
13 int batt_mult;
14 int temp_div;
15 int temp_mult;
16 int batt_tech;
17 char *batt_name;
18};
19
20#ifdef CONFIG_BATTERY_WM97XX
21void __init wm97xx_bat_set_pdata(struct wm97xx_batt_info *data);
22#else
23static inline void wm97xx_bat_set_pdata(struct wm97xx_batt_info *data) {}
24#endif
25
26#endif