mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
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>
This commit is contained in:
parent
c1c8ed81e2
commit
a5b03d81c2
2 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -234,7 +234,7 @@ static int max8998_suspend(struct device *dev)
|
|||
struct max8998_dev *max8998 = i2c_get_clientdata(i2c);
|
||||
|
||||
if (device_may_wakeup(dev))
|
||||
irq_set_irq_wake(max8998->irq, 1);
|
||||
enable_irq_wake(max8998->irq);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -244,7 +244,7 @@ static int max8998_resume(struct device *dev)
|
|||
struct max8998_dev *max8998 = i2c_get_clientdata(i2c);
|
||||
|
||||
if (device_may_wakeup(dev))
|
||||
irq_set_irq_wake(max8998->irq, 0);
|
||||
disable_irq_wake(max8998->irq);
|
||||
/*
|
||||
* In LP3974, if IRQ registers are not "read & clear"
|
||||
* when it's set during sleep, the interrupt becomes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue