aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/max8998-irq.c
diff options
context:
space:
mode:
authorMyungJoo Ham <myungjoo.ham@samsung.com>2010-12-23 03:53:36 -0500
committerSamuel Ortiz <sameo@linux.intel.com>2011-01-14 06:38:14 -0500
commitcdd137c9c86c201ddb7f42ec978d2da45e7b7a17 (patch)
tree1fe9850f283a3952b139d2fc113759fbb4fed88c /drivers/mfd/max8998-irq.c
parent6680d940b80dbb0617226c5b76b071a3977feb1c (diff)
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)
183 return IRQ_HANDLED; 183 return IRQ_HANDLED;
184} 184}
185 185
186int max8998_irq_resume(struct max8998_dev *max8998)
187{
188 if (max8998->irq && max8998->irq_base)
189 max8998_irq_thread(max8998->irq_base, max8998);
190 return 0;
191}
192
186int max8998_irq_init(struct max8998_dev *max8998) 193int max8998_irq_init(struct max8998_dev *max8998)
187{ 194{
188 int i; 195 int i;