aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-07-12 22:52:31 +0100
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-07-18 19:28:46 +0100
commita088ce9b4b4f419688c705cad55ba5c9301e3183 (patch)
tree0a6ba8d43c9d06c5d99bcd08fbc9c437eb134870 /include
parentb7047733dc5b6c6843d9569e23c74d2ed280b4f2 (diff)
downloadqemu-a088ce9b4b4f419688c705cad55ba5c9301e3183.zip
qemu-a088ce9b4b4f419688c705cad55ba5c9301e3183.tar.gz
qemu-a088ce9b4b4f419688c705cad55ba5c9301e3183.tar.bz2
lasips2: move mouse port initialisation to new lasips2_mouse_port_init() function
Move the initialisation of the mouse port from lasips2_init() to a new lasips2_mouse_port_init() function which will be invoked using object_initialize_child() during the LASIPS2 device init. Update LASIPS2State so that it now holds the new LASIPS2MousePort child object and ensure that it is realised in lasips2_realize(). Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Tested-by: Helge Deller <deller@gmx.de> Acked-by: Helge Deller <deller@gmx.de> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-Id: <20220712215251.7944-21-mark.cave-ayland@ilande.co.uk> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'include')
-rw-r--r--include/hw/input/lasips2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/input/lasips2.h b/include/hw/input/lasips2.h
index f728f54..84807be 100644
--- a/include/hw/input/lasips2.h
+++ b/include/hw/input/lasips2.h
@@ -61,7 +61,7 @@ struct LASIPS2State {
SysBusDevice parent_obj;
LASIPS2KbdPort kbd_port;
- LASIPS2Port mouse;
+ LASIPS2MousePort mouse_port;
qemu_irq irq;
};