mirror of
https://github.com/torvalds/linux.git
synced 2026-01-25 15:03:52 +08:00
regmap-irq: 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: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://patch.msgid.link/20250521135538.1086717-1-andriy.shevchenko@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Mark Brown
parent
c5a219395b
commit
eb4e0298a0
@@ -193,10 +193,10 @@ static void regmap_irq_sync_unlock(struct irq_data *data)
|
||||
/* If we've changed our wakeup count propagate it to the parent */
|
||||
if (d->wake_count < 0)
|
||||
for (i = d->wake_count; i < 0; i++)
|
||||
irq_set_irq_wake(d->irq, 0);
|
||||
disable_irq_wake(d->irq);
|
||||
else if (d->wake_count > 0)
|
||||
for (i = 0; i < d->wake_count; i++)
|
||||
irq_set_irq_wake(d->irq, 1);
|
||||
enable_irq_wake(d->irq);
|
||||
|
||||
d->wake_count = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user