summaryrefslogtreecommitdiff
path: root/include/linux/power/bq27x00_battery.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/power/bq27x00_battery.h')
-rw-r--r--include/linux/power/bq27x00_battery.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/power/bq27x00_battery.h b/include/linux/power/bq27x00_battery.h
index a857f719bf4..a8999e26dcc 100644
--- a/include/linux/power/bq27x00_battery.h
+++ b/include/linux/power/bq27x00_battery.h
@@ -16,4 +16,22 @@ struct bq27000_platform_data {
int (*read)(struct device *dev, unsigned int);
};
+/**
+ * struct bq27x00_plaform_data - Platform data for bq27000 devices
+ * @charger_ops: Access functions for the charger
+ * Some information can't be deduced and needs to be retrieved
+ * directly from the charger. For example, if the device is
+ * running at full speed it may use more power than the charger
+ * can provide and a net outflow from the battery will be the
+ * result. With access to the charger the battery can still tell
+ * that it's on the charger (important information in certain
+ * circumstances).
+ */
+struct bq27x00_platform_data {
+ const char * charger_name;
+ struct device * charger_device;
+ struct i2c_client * charger_i2c;
+};
+
+
#endif