diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2013-02-10 18:32:18 +0100 |
---|---|---|
committer | Anton Vorontsov <anton@enomsg.org> | 2013-02-16 13:34:10 -0800 |
commit | ac6324e7021dfa917ce4f9a836318c3e46fbb84e (patch) | |
tree | 74dcd582e083fbf8c82e3146e89b84bb6e8d1295 /include/linux/power | |
parent | 64d26f225fefe06c870634e7bfe026a063e7f776 (diff) | |
download | linux-stable-ac6324e7021dfa917ce4f9a836318c3e46fbb84e.tar.gz linux-stable-ac6324e7021dfa917ce4f9a836318c3e46fbb84e.tar.bz2 linux-stable-ac6324e7021dfa917ce4f9a836318c3e46fbb84e.zip |
bq2415x_charger: Add support for offline and 100mA mode
* Renamed mode BQ2415X_MODE_NONE to BQ2415X_MODE_OFF because this mode
turning chaging completly off
* Added new mode BQ2415X_MODE_NONE which enable charging with maximal
current limit 100mA (this is minimal safe value for bq2415x chips)
Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
Diffstat (limited to 'include/linux/power')
-rw-r--r-- | include/linux/power/bq2415x_charger.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/power/bq2415x_charger.h b/include/linux/power/bq2415x_charger.h index 97a1665eaeaf..8dcc0f46fc0a 100644 --- a/include/linux/power/bq2415x_charger.h +++ b/include/linux/power/bq2415x_charger.h @@ -75,7 +75,8 @@ /* Supported modes with maximal current limit */ enum bq2415x_mode { - BQ2415X_MODE_NONE, /* unknown or no charger (100mA) */ + BQ2415X_MODE_OFF, /* offline mode (charger disabled) */ + BQ2415X_MODE_NONE, /* unknown charger (100mA) */ BQ2415X_MODE_HOST_CHARGER, /* usb host/hub charger (500mA) */ BQ2415X_MODE_DEDICATED_CHARGER, /* dedicated charger (unlimited) */ BQ2415X_MODE_BOOST, /* boost mode (charging disabled) */ |