diff options
| author | Xichao Zhao <zhao.xichao@vivo.com> | 2025-08-15 18:06:01 +0800 |
|---|---|---|
| committer | Lee Jones <lee@kernel.org> | 2025-10-01 10:28:23 +0100 |
| commit | a5b03d81c23ef2aae8a88dc9da009a56b4bbb8f6 (patch) | |
| tree | 8bc13fe16da4af4d57b0b1f16d22ff7eb27c3fb7 /drivers/mfd/max8997.c | |
| parent | c1c8ed81e200126b711ee5b012e1fa9a0da2cbe1 (diff) | |
mfd: max899x: Use dedicated interrupt wake setters
Use enable_irq_wake() and disable_irq_wake() instead of
calling low-level irq_set_irq_wake() with a parameter.
No functional changes.
Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com>
Link: https://lore.kernel.org/r/20250815100601.622923-1-zhao.xichao@vivo.com
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/mfd/max8997.c')
| -rw-r--r-- | drivers/mfd/max8997.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/max8997.c b/drivers/mfd/max8997.c index ffe96b40368e..7ba8ed1dfde3 100644 --- a/drivers/mfd/max8997.c +++ b/drivers/mfd/max8997.c @@ -438,7 +438,7 @@ static int max8997_suspend(struct device *dev) disable_irq(max8997->irq); if (device_may_wakeup(dev)) - irq_set_irq_wake(max8997->irq, 1); + enable_irq_wake(max8997->irq); return 0; } @@ -448,7 +448,7 @@ static int max8997_resume(struct device *dev) struct max8997_dev *max8997 = i2c_get_clientdata(i2c); if (device_may_wakeup(dev)) - irq_set_irq_wake(max8997->irq, 0); + disable_irq_wake(max8997->irq); enable_irq(max8997->irq); return max8997_irq_resume(max8997); } |
