mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
92bd278c3b
commit
f4907cb5cf
2 changed files with 10 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue