Skip to content

Commit eb4e029

Browse files
andy-shevbroonie
authored andcommitted
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>
1 parent c5a2193 commit eb4e029

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/base/regmap/regmap-irq.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,10 @@ static void regmap_irq_sync_unlock(struct irq_data *data)
193193
/* If we've changed our wakeup count propagate it to the parent */
194194
if (d->wake_count < 0)
195195
for (i = d->wake_count; i < 0; i++)
196-
irq_set_irq_wake(d->irq, 0);
196+
disable_irq_wake(d->irq);
197197
else if (d->wake_count > 0)
198198
for (i = 0; i < d->wake_count; i++)
199-
irq_set_irq_wake(d->irq, 1);
199+
enable_irq_wake(d->irq);
200200

201201
d->wake_count = 0;
202202

0 commit comments

Comments
 (0)