summaryrefslogtreecommitdiff
path: root/drivers/mfd/max8998-irq.c
diff options
context:
space:
mode:
authorMyungJoo Ham <myungjoo.ham@samsung.com>2010-12-23 11:53:36 +0300
committerSamuel Ortiz <sameo@linux.intel.com>2011-01-14 14:38:14 +0300
commitcdd137c9c86c201ddb7f42ec978d2da45e7b7a17 (patch)
tree1fe9850f283a3952b139d2fc113759fbb4fed88c /drivers/mfd/max8998-irq.c
parent6680d940b80dbb0617226c5b76b071a3977feb1c (diff)
downloadlinux-cdd137c9c86c201ddb7f42ec978d2da45e7b7a17.tar.xz
mfd: MAX8998/LP3974 hibernation support
This patch makes the driver to save and restore register values for hibernation. Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/max8998-irq.c')
-rw-r--r--drivers/mfd/max8998-irq.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/mfd/max8998-irq.c b/drivers/mfd/max8998-irq.c
index c6b61fcc5808..3903e1fbb334 100644
--- a/drivers/mfd/max8998-irq.c
+++ b/drivers/mfd/max8998-irq.c
@@ -183,6 +183,13 @@ static irqreturn_t max8998_irq_thread(int irq, void *data)
return IRQ_HANDLED;
}
+int max8998_irq_resume(struct max8998_dev *max8998)
+{
+ if (max8998->irq && max8998->irq_base)
+ max8998_irq_thread(max8998->irq_base, max8998);
+ return 0;
+}
+
int max8998_irq_init(struct max8998_dev *max8998)
{
int i;