]> Git Repo - qemu.git/commitdiff
hw/input/ps2: Use ps2_raise_irq() instead of open coding it
authorPhilippe Mathieu-Daudé <[email protected]>
Thu, 13 May 2021 17:12:44 +0000 (19:12 +0200)
committerGerd Hoffmann <[email protected]>
Wed, 26 May 2021 09:33:49 +0000 (11:33 +0200)
Inspired-by: Volker Rümelin <[email protected]>
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Volker Rümelin <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Message-Id: <20210513171244.3940519[email protected]>
Signed-off-by: Gerd Hoffmann <[email protected]>
hw/input/ps2.c

index 5cf95b4dd3eb5365e1cda4f15b2c0d063240508a..8dd482c1f65b579ee1d58c3081ecc8b02f5f3e65 100644 (file)
@@ -217,7 +217,7 @@ void ps2_queue(PS2State *s, int b)
     }
 
     ps2_queue_noirq(s, b);
-    s->update_irq(s->update_arg, 1);
+    ps2_raise_irq(s);
 }
 
 void ps2_queue_2(PS2State *s, int b1, int b2)
@@ -228,7 +228,7 @@ void ps2_queue_2(PS2State *s, int b1, int b2)
 
     ps2_queue_noirq(s, b1);
     ps2_queue_noirq(s, b2);
-    s->update_irq(s->update_arg, 1);
+    ps2_raise_irq(s);
 }
 
 void ps2_queue_3(PS2State *s, int b1, int b2, int b3)
@@ -240,7 +240,7 @@ void ps2_queue_3(PS2State *s, int b1, int b2, int b3)
     ps2_queue_noirq(s, b1);
     ps2_queue_noirq(s, b2);
     ps2_queue_noirq(s, b3);
-    s->update_irq(s->update_arg, 1);
+    ps2_raise_irq(s);
 }
 
 void ps2_queue_4(PS2State *s, int b1, int b2, int b3, int b4)
@@ -253,7 +253,7 @@ void ps2_queue_4(PS2State *s, int b1, int b2, int b3, int b4)
     ps2_queue_noirq(s, b2);
     ps2_queue_noirq(s, b3);
     ps2_queue_noirq(s, b4);
-    s->update_irq(s->update_arg, 1);
+    ps2_raise_irq(s);
 }
 
 /* keycode is the untranslated scancode in the current scancode set. */
This page took 0.031392 seconds and 4 git commands to generate.