diff options
| author | mattis fjallstrom <mattis@acm.org> | 2015-09-25 16:02:20 -0700 |
|---|---|---|
| committer | mattis fjallstrom <mattis@acm.org> | 2015-09-25 16:02:20 -0700 |
| commit | d955f0cd9c528ed33d7da0c760f46572381c2039 (patch) | |
| tree | f5fadaebd96d1fcc1747e90747db72a8f99e4a5d /include/linux/power/bq27x00_battery.h | |
| parent | 9349b6c5b9f2bbe3cdaace0fc4774dc6baf5f7ba (diff) | |
| download | olio-linux-3.10-d955f0cd9c528ed33d7da0c760f46572381c2039.tar.xz olio-linux-3.10-d955f0cd9c528ed33d7da0c760f46572381c2039.zip | |
Adding support for ts81001, and modifying fuel gauge bq27 to check the status of the ts81001 when deciding if it's charging or not.
Change-Id: Iff0e890eecd86c82889f91075f83073ab2fd3036
Diffstat (limited to 'include/linux/power/bq27x00_battery.h')
| -rw-r--r-- | include/linux/power/bq27x00_battery.h | 18 |
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 |