[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 17/54] lasips2: rename ps2dev_update_irq() to lasips2_port_set
From: |
Mark Cave-Ayland |
Subject: |
[PATCH v2 17/54] lasips2: rename ps2dev_update_irq() to lasips2_port_set_irq() |
Date: |
Fri, 24 Jun 2022 14:40:32 +0100 |
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>
---
hw/input/lasips2.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/hw/input/lasips2.c b/hw/input/lasips2.c
index 2ac3433014..adfde1684f 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);
--
2.30.2
- [PATCH v2 07/54] ps2: introduce PS2DeviceClass, (continued)
- [PATCH v2 07/54] ps2: introduce PS2DeviceClass, Mark Cave-Ayland, 2022/06/24
- [PATCH v2 08/54] ps2: implement ps2_reset() for the PS2_DEVICE QOM type based upon ps2_common_reset(), Mark Cave-Ayland, 2022/06/24
- [PATCH v2 09/54] ps2: remove duplicate setting of scancode_set in ps2_kbd_init(), Mark Cave-Ayland, 2022/06/24
- [PATCH v2 11/54] ps2: implement ps2_mouse_realize() and use it to register ps2_mouse_handler, Mark Cave-Ayland, 2022/06/24
- [PATCH v2 10/54] ps2: implement ps2_kbd_realize() and use it to register ps2_keyboard_handler, Mark Cave-Ayland, 2022/06/24
- [PATCH v2 12/54] ps2: don't use vmstate_register() in ps2_kbd_init(), Mark Cave-Ayland, 2022/06/24
- [PATCH v2 13/54] ps2: don't use vmstate_register() in ps2_mouse_init(), Mark Cave-Ayland, 2022/06/24
- [PATCH v2 14/54] pl050: checkpatch fixes, Mark Cave-Ayland, 2022/06/24
- [PATCH v2 15/54] pl050: split pl050_update_irq() into separate pl050_set_irq() and pl050_update_irq() functions, Mark Cave-Ayland, 2022/06/24
- [PATCH v2 16/54] lasips2: spacing fixes, Mark Cave-Ayland, 2022/06/24
- [PATCH v2 17/54] lasips2: rename ps2dev_update_irq() to lasips2_port_set_irq(),
Mark Cave-Ayland <=
- [PATCH v2 20/54] pckbd: move ISAKBDState from pckbd.c to i8042.h, Mark Cave-Ayland, 2022/06/24
- [PATCH v2 18/54] pckbd: checkpatch fixes, Mark Cave-Ayland, 2022/06/24
- [PATCH v2 21/54] pckbd: introduce new I8042_MMIO QOM type, Mark Cave-Ayland, 2022/06/24
- [PATCH v2 19/54] pckbd: move KBDState from pckbd.c to i8042.h, Mark Cave-Ayland, 2022/06/24
- [PATCH v2 22/54] pckbd: implement i8042_mmio_reset() for I8042_MMIO device, Mark Cave-Ayland, 2022/06/24
- [PATCH v2 23/54] pckbd: add mask qdev property to I8042_MMIO device, Mark Cave-Ayland, 2022/06/24
- [PATCH v2 24/54] pckbd: add size qdev property to I8042_MMIO device, Mark Cave-Ayland, 2022/06/24
- [PATCH v2 25/54] pckbd: implement i8042_mmio_realize() function, Mark Cave-Ayland, 2022/06/24
- [PATCH v2 26/54] pckbd: implement i8042_mmio_init() function, Mark Cave-Ayland, 2022/06/24