aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/sec-core.c
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2014-06-25 03:14:47 -0400
committerLee Jones <lee.jones@linaro.org>2014-07-09 09:58:12 -0400
commitb7cde7078d2344073c310aa65fc2b0a845d2cb5b (patch)
treecea3062fcf908fed85cf3d4aad78367567a4171e /drivers/mfd/sec-core.c
parentb264fc7002b658aceb679449952a674ef60b4655 (diff)
mfd: sec-core: Prepare regulators for suspend state to reduce power-consumption
This patch use regulator_suspend_prepare() function to prepare the proper state of regulators for suspend state to remove un-necessary leakage power-consumption. Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/sec-core.c')
-rw-r--r--drivers/mfd/sec-core.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c
index 2621328851ba..fb8ba6438268 100644
--- a/drivers/mfd/sec-core.c
+++ b/drivers/mfd/sec-core.c
@@ -31,6 +31,7 @@
31#include <linux/mfd/samsung/s2mpu02.h> 31#include <linux/mfd/samsung/s2mpu02.h>
32#include <linux/mfd/samsung/s5m8763.h> 32#include <linux/mfd/samsung/s5m8763.h>
33#include <linux/mfd/samsung/s5m8767.h> 33#include <linux/mfd/samsung/s5m8767.h>
34#include <linux/regulator/machine.h>
34#include <linux/regmap.h> 35#include <linux/regmap.h>
35 36
36static const struct mfd_cell s5m8751_devs[] = { 37static const struct mfd_cell s5m8751_devs[] = {
@@ -430,6 +431,15 @@ static int sec_pmic_suspend(struct device *dev)
430 */ 431 */
431 disable_irq(sec_pmic->irq); 432 disable_irq(sec_pmic->irq);
432 433
434 switch (sec_pmic->device_type) {
435 case S2MPS14X:
436 case S2MPU02:
437 regulator_suspend_prepare(PM_SUSPEND_MEM);
438 break;
439 default:
440 break;
441 }
442
433 return 0; 443 return 0;
434} 444}
435 445