mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 08:45:26 -05: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user