summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMarek VaĊĦut <marek.vasut@gmail.com>2008-09-11 22:37:32 +0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-10-03 01:48:34 +0400
commit4e9687d9c843dc34d368358a36f5f1610e4fbab3 (patch)
tree54ee159fff8a1b6064cbc1f4e97f8c4d918c5d02 /include/linux
parentc49e1e63a9c7893d9ff9be4258d86ddc5485d712 (diff)
downloadlinux-4e9687d9c843dc34d368358a36f5f1610e4fbab3.tar.xz
[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')
-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 @@
+#ifndef _LINUX_WM97XX_BAT_H
+#define _LINUX_WM97XX_BAT_H
+
+#include <linux/wm97xx.h>
+
+struct wm97xx_batt_info {
+ int batt_aux;
+ int temp_aux;
+ int charge_gpio;
+ int min_voltage;
+ int max_voltage;
+ int batt_div;
+ int batt_mult;
+ int temp_div;
+ int temp_mult;
+ int batt_tech;
+ char *batt_name;
+};
+
+#ifdef CONFIG_BATTERY_WM97XX
+void __init wm97xx_bat_set_pdata(struct wm97xx_batt_info *data);
+#else
+static inline void wm97xx_bat_set_pdata(struct wm97xx_batt_info *data) {}
+#endif
+
+#endif