Skip to contentSkip to conversation

Docu: genericirq.rst: fix irq-example

PATCH Applied Philipp Stanner 2 participants 2 messages Aug 24, 2023 – Aug 28, 2023 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Docu: genericirq.rst: fix irq-example

A code example was missing the pointer to dereference a variable.

---
 Documentation/core-api/genericirq.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/core-api/genericirq.rst +1 -1
index f959c9b53f61..4a460639ab1c 100644
@@ -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;
 
 
Signature · 1 line
2.40.0
maintainer Applied
#1 lore raw
Quoted 12 lines · Philipp Stanner

A code example was missing the pointer to dereference a variable.

---
 Documentation/core-api/genericirq.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/core-api/genericirq.rst +0 -0
index f959c9b53f61..4a460639ab1c 100644

Documentation/core-api/genericirq.rst The following control flow is implemented (simplified excerpt):: · line 268

Quoted 6 lines
Documentation/core-api/genericirq.rst +1 -1
@@ -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;

Applied, thanks.

jon