summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorPhilipp Stanner <pstanner@redhat.com>2023-08-24 14:01:09 +0300
committerJonathan Corbet <corbet@lwn.net>2023-08-28 21:45:31 +0300
commitc63594f2d66690805eb78b75e4b8e8dc9f2672bf (patch)
treea6a5d3041ac1be27b9c5b3693379cefe4e1e20f4 /Documentation
parent8d58ce1b1e0ba343586db2e4f6eac5410661b8ba (diff)
downloadlinux-c63594f2d66690805eb78b75e4b8e8dc9f2672bf.tar.xz
Docu: genericirq.rst: fix irq-example
A code example was missing the pointer to dereference a variable. Signed-off-by: Philipp Stanner <pstanner@redhat.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Link: https://lore.kernel.org/r/20230824110109.18844-1-pstanner@redhat.com
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/core-api/genericirq.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/core-api/genericirq.rst b/Documentation/core-api/genericirq.rst
index f959c9b53f61..4a460639ab1c 100644
--- a/Documentation/core-api/genericirq.rst
+++ b/Documentation/core-api/genericirq.rst
@@ -264,7 +264,7 @@ The following control flow is implemented (simplified excerpt)::
desc->irq_data.chip->irq_unmask();
desc->status &= ~pending;
handle_irq_event(desc->action);
- } while (status & pending);
+ } while (desc->status & pending);
desc->status &= ~running;