summaryrefslogtreecommitdiffstats
path: root/include/hw
diff options
context:
space:
mode:
authorMark Cave-Ayland2022-07-12 23:52:26 +0200
committerMark Cave-Ayland2022-07-18 20:28:46 +0200
commitf4907cb5cf8fba22f08b07fc709264712706bac7 (patch)
treeec2567b02894ff31551d2cf79d97cb8055e015e6 /include/hw
parentlasips2: remove legacy lasips2_initfn() function (diff)
downloadqemu-f4907cb5cf8fba22f08b07fc709264712706bac7.tar.gz
qemu-f4907cb5cf8fba22f08b07fc709264712706bac7.tar.xz
qemu-f4907cb5cf8fba22f08b07fc709264712706bac7.zip
lasips2: change LASIPS2State dev pointer from void to PS2State
This allows the compiler to enforce that the PS2 device pointer is always of type PS2State. Update the name of the pointer from dev to ps2dev to emphasise this type change. 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-16-mark.cave-ayland@ilande.co.uk> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/input/lasips2.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hw/input/lasips2.h b/include/hw/input/lasips2.h
index 868c5521d7..9746b7a132 100644
--- a/include/hw/input/lasips2.h
+++ b/include/hw/input/lasips2.h
@@ -23,12 +23,13 @@
#include "exec/hwaddr.h"
#include "hw/sysbus.h"
+#include "hw/input/ps2.h"
struct LASIPS2State;
typedef struct LASIPS2Port {
struct LASIPS2State *parent;
MemoryRegion reg;
- void *dev;
+ PS2State *ps2dev;
uint8_t id;
uint8_t control;
uint8_t buf;