aboutsummaryrefslogtreecommitdiff
path: root/include/hw/input
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-07-12 22:52:14 +0100
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2022-07-18 19:28:45 +0100
commit33e0958e7eb9481baf59df826e024954c6e6b5ca (patch)
tree116cc61e2458a3ad8f720d717ccb93a84809b2fb /include/hw/input
parentb6c575d8d6312eb0c6126e7423f41c11b2547d8e (diff)
downloadqemu-33e0958e7eb9481baf59df826e024954c6e6b5ca.zip
qemu-33e0958e7eb9481baf59df826e024954c6e6b5ca.tar.gz
qemu-33e0958e7eb9481baf59df826e024954c6e6b5ca.tar.bz2
pl050: change PL050State 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-4-mark.cave-ayland@ilande.co.uk> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'include/hw/input')
-rw-r--r--include/hw/input/pl050.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/input/pl050.h b/include/hw/input/pl050.h
index 2bbf7a9..c1f6c5a 100644
--- a/include/hw/input/pl050.h
+++ b/include/hw/input/pl050.h
@@ -23,7 +23,7 @@ struct PL050State {
SysBusDevice parent_obj;
MemoryRegion iomem;
- void *dev;
+ PS2State *ps2dev;
uint32_t cr;
uint32_t clk;
uint32_t last;