]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
pm2301-charger: Add pm_runtime_resume & pm_runtime_suspend
authorLee Jones <lee.jones@linaro.org>
Mon, 25 Feb 2013 14:28:59 +0000 (14:28 +0000)
committerLee Jones <lee.jones@linaro.org>
Thu, 7 Mar 2013 04:35:51 +0000 (12:35 +0800)
commitaee2b8468caf3d1eed6e329e828bc09eaa61063a
tree85a025145aa08b9071b93061e53165d7b2c82980
parentf4095a0f06476e5914f2c58b4e96258b2e2ba6b7
pm2301-charger: Add pm_runtime_resume & pm_runtime_suspend

To optimize the current consumption we use pm_runtime autosuspend
functions which execute the pm_runtime_suspend after a delay of
inactivity on the other hand we use pm_runtime_resume every time
we receive an interruption to wake up the pm2301.

Signed-off-by: M BenZoubeir <mustapha.ben.zoubeir-xsig@stericsson.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com>
drivers/power/pm2301_charger.c