aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaul Fertser <fercerpav@gmail.com>2009-10-23 01:49:10 +0400
committerLars-Peter Clausen <lars@metafoo.de>2009-12-07 08:59:49 +0100
commit80b69fcb9233a7643a3d1456c11edcae078a2e17 (patch)
tree02d2ef3e237aec346320d37f983c441882f933cb /include
parent22763c5cf3690a681551162c15d34d935308c8d7 (diff)
power: implement platform battery driver
This driver can be used for dumb batteries when all knowledge about their state belongs to the platform that does necessary ADC readings, conversions, guessimations etc. Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/platform_battery.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/platform_battery.h b/include/linux/platform_battery.h
new file mode 100644
index 00000000000..00f7651096a
--- /dev/null
+++ b/include/linux/platform_battery.h
@@ -0,0 +1,12 @@
+#ifndef __PLATFORM_BATTERY_H__
+#define __PLATFORM_BATTERY_H__
+
+struct platform_bat_platform_data {
+ const char *name;
+ int (**get_property)(void);
+ int (*is_present)(void);
+ enum power_supply_property *properties;
+ size_t num_properties;
+};
+
+#endif