diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2013-02-10 12:32:18 -0500 |
---|---|---|
committer | Anton Vorontsov <anton@enomsg.org> | 2013-02-16 16:34:10 -0500 |
commit | ac6324e7021dfa917ce4f9a836318c3e46fbb84e (patch) | |
tree | 74dcd582e083fbf8c82e3146e89b84bb6e8d1295 /include/linux/power | |
parent | 64d26f225fefe06c870634e7bfe026a063e7f776 (diff) |
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 @@ | |||
75 | 75 | ||
76 | /* Supported modes with maximal current limit */ | 76 | /* Supported modes with maximal current limit */ |
77 | enum bq2415x_mode { | 77 | enum bq2415x_mode { |
78 | BQ2415X_MODE_NONE, /* unknown or no charger (100mA) */ | 78 | BQ2415X_MODE_OFF, /* offline mode (charger disabled) */ |
79 | BQ2415X_MODE_NONE, /* unknown charger (100mA) */ | ||
79 | BQ2415X_MODE_HOST_CHARGER, /* usb host/hub charger (500mA) */ | 80 | BQ2415X_MODE_HOST_CHARGER, /* usb host/hub charger (500mA) */ |
80 | BQ2415X_MODE_DEDICATED_CHARGER, /* dedicated charger (unlimited) */ | 81 | BQ2415X_MODE_DEDICATED_CHARGER, /* dedicated charger (unlimited) */ |
81 | BQ2415X_MODE_BOOST, /* boost mode (charging disabled) */ | 82 | BQ2415X_MODE_BOOST, /* boost mode (charging disabled) */ |