diff options
author | Jonghwa Lee <jonghwa3.lee@samsung.com> | 2014-10-24 14:45:02 +0900 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-18 12:01:06 +0900 |
commit | e6939f25b5352491d56fbd63ef06539ff8fc2896 (patch) | |
tree | a0026411a6509d7df5a73d6c1c62d4f4f921aad6 /include | |
parent | 764843b0d3d44e4a7a689bd85b019d6c97447f03 (diff) | |
download | linux-3.10-e6939f25b5352491d56fbd63ef06539ff8fc2896.tar.gz linux-3.10-e6939f25b5352491d56fbd63ef06539ff8fc2896.tar.bz2 linux-3.10-e6939f25b5352491d56fbd63ef06539ff8fc2896.zip |
power: charger-manager: Support different polling mode for sleep state.
Add additional polling mode for sleep state to define different mode with
normal state. With this change, charger-manager can work differently in
normal state or sleep state. e.g, polling aways for normal and polling
only when charing for sleep. If there is no defined polling mode for
sleep state it just follows the normal state's.
In addition to, polling rate is still same in sleep.
Change-Id: I787a3abd646bdc0be81dccbafbd635c22c84951c
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/power/charger-manager.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/linux/power/charger-manager.h b/include/linux/power/charger-manager.h index d380ba343ef..a644a2887f7 100644 --- a/include/linux/power/charger-manager.h +++ b/include/linux/power/charger-manager.h @@ -131,8 +131,10 @@ struct charger_regulator { /** * struct charger_desc * @psy_name: the name of power-supply-class for charger manager - * @polling_mode: - * Determine which polling mode will be used + * @poll_mode_normal: + * Determine which polling mode will be used in normal state. + * @poll_mode_sleep: + * Determine which polling mode will be used in sleep state. * @fullbatt_vchkdrop_uV: * Check voltage drop after the battery is fully charged. * If it has dropped more than fullbatt_vchkdrop_uV @@ -171,7 +173,8 @@ struct charger_regulator { struct charger_desc { const char *psy_name; - enum polling_modes polling_mode; + enum polling_modes poll_mode_normal; + enum polling_modes poll_mode_sleep; unsigned int polling_interval_ms; unsigned int fullbatt_vchkdrop_uV; |