diff options
author | Marc-André Lureau | 2019-10-17 17:06:05 +0200 |
---|---|---|
committer | Marc-André Lureau | 2020-01-07 14:24:29 +0100 |
commit | 0fe4bb3241110fc9fbd1c5c457d58191fcdca5d3 (patch) | |
tree | f00c8403e2d98252c7eda24d84faa5f443377e84 /hw/input | |
parent | sm501: make SerialMM a child, export chardev property (diff) | |
download | qemu-0fe4bb3241110fc9fbd1c5c457d58191fcdca5d3.tar.gz qemu-0fe4bb3241110fc9fbd1c5c457d58191fcdca5d3.tar.xz qemu-0fe4bb3241110fc9fbd1c5c457d58191fcdca5d3.zip |
vmmouse: replace PROP_PTR with PROP_LINK
While at it, use the expected type.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'hw/input')
-rw-r--r-- | hw/input/pckbd.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/hw/input/pckbd.c b/hw/input/pckbd.c index 2f09f780ba..60a4130320 100644 --- a/hw/input/pckbd.c +++ b/hw/input/pckbd.c @@ -482,17 +482,15 @@ void i8042_mm_init(qemu_irq kbd_irq, qemu_irq mouse_irq, #define I8042(obj) OBJECT_CHECK(ISAKBDState, (obj), TYPE_I8042) -typedef struct ISAKBDState { +struct ISAKBDState { ISADevice parent_obj; KBDState kbd; MemoryRegion io[2]; -} ISAKBDState; +}; -void i8042_isa_mouse_fake_event(void *opaque) +void i8042_isa_mouse_fake_event(ISAKBDState *isa) { - ISADevice *dev = opaque; - ISAKBDState *isa = I8042(dev); KBDState *s = &isa->kbd; ps2_mouse_fake_event(s->mouse); |