summaryrefslogtreecommitdiff
path: root/include/linux/power/bq27xxx_battery.h
diff options
context:
space:
mode:
authorAndrew F. Davis <afd@ti.com>2015-09-22 14:35:06 -0500
committerSebastian Reichel <sre@kernel.org>2015-09-23 16:16:22 +0200
commit081bab217db769526c1202c87099ff69737126ae (patch)
tree99509361f6a0c657a5ab7ba780d657f5b5fb920c /include/linux/power/bq27xxx_battery.h
parent95b8aff2a6e5616639db06dd37efb36fba188590 (diff)
power: bq27x00_battery: Renaming for consistency
Rename functions that are used by multiple devices. New devices have been added and the function names and driver name are no longer general enough for the functionality they provide. Signed-off-by: Andrew F. Davis <afd@ti.com> Acked-by: Tony Lindgren <tony@atomide.com> Acked-by: GUAN Xuetao <gxt@mprc.pku.edu.cn> Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'include/linux/power/bq27xxx_battery.h')
-rw-r--r--include/linux/power/bq27xxx_battery.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/power/bq27xxx_battery.h b/include/linux/power/bq27xxx_battery.h
new file mode 100644
index 000000000000..e70a93a6799f
--- /dev/null
+++ b/include/linux/power/bq27xxx_battery.h
@@ -0,0 +1,19 @@
+#ifndef __LINUX_BQ27X00_BATTERY_H__
+#define __LINUX_BQ27X00_BATTERY_H__
+
+/**
+ * struct bq27xxx_plaform_data - Platform data for bq27xxx devices
+ * @name: Name of the battery. If NULL the driver will fallback to "bq27000".
+ * @read: HDQ read callback.
+ * This function should provide access to the HDQ bus the battery is
+ * connected to.
+ * The first parameter is a pointer to the battery device, the second the
+ * register to be read. The return value should either be the content of
+ * the passed register or an error value.
+ */
+struct bq27xxx_platform_data {
+ const char *name;
+ int (*read)(struct device *dev, unsigned int);
+};
+
+#endif