aboutsummaryrefslogtreecommitdiff
path: root/hw/input/lasips2.c
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-06-24 14:40:32 +0100
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-06-26 18:40:11 +0100
commitf342469f21df9594e400d1208083652847ca4675 (patch)
tree60f76d20bd638a02708095113aff359a71a023cc /hw/input/lasips2.c
parent2a93d3c16571305864df8f990e39cb4d99ea1d33 (diff)
downloadqemu-f342469f21df9594e400d1208083652847ca4675.zip
qemu-f342469f21df9594e400d1208083652847ca4675.tar.gz
qemu-f342469f21df9594e400d1208083652847ca4675.tar.bz2
lasips2: rename ps2dev_update_irq() to lasips2_port_set_irq()
This better reflects that the IRQ input opaque is a LASIPS2Port structure and not a PS2_DEVICE. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Acked-by: Helge Deller <deller@gmx.de> Message-Id: <20220624134109.881989-18-mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'hw/input/lasips2.c')
-rw-r--r--hw/input/lasips2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/input/lasips2.c b/hw/input/lasips2.c
index 2ac3433..adfde16 100644
--- a/hw/input/lasips2.c
+++ b/hw/input/lasips2.c
@@ -253,7 +253,7 @@ static const MemoryRegionOps lasips2_reg_ops = {
.endianness = DEVICE_NATIVE_ENDIAN,
};
-static void ps2dev_update_irq(void *opaque, int level)
+static void lasips2_port_set_irq(void *opaque, int level)
{
LASIPS2Port *port = opaque;
@@ -275,8 +275,8 @@ void lasips2_init(MemoryRegion *address_space,
vmstate_register(NULL, base, &vmstate_lasips2, s);
- s->kbd.dev = ps2_kbd_init(ps2dev_update_irq, &s->kbd);
- s->mouse.dev = ps2_mouse_init(ps2dev_update_irq, &s->mouse);
+ s->kbd.dev = ps2_kbd_init(lasips2_port_set_irq, &s->kbd);
+ s->mouse.dev = ps2_mouse_init(lasips2_port_set_irq, &s->mouse);
memory_region_init_io(&s->kbd.reg, NULL, &lasips2_reg_ops, &s->kbd,
"lasips2-kbd", 0x100);