summaryrefslogtreecommitdiffstats
path: root/hw/input
diff options
context:
space:
mode:
authorMarc-André Lureau2019-10-17 17:06:05 +0200
committerMarc-André Lureau2020-01-07 14:24:29 +0100
commit0fe4bb3241110fc9fbd1c5c457d58191fcdca5d3 (patch)
treef00c8403e2d98252c7eda24d84faa5f443377e84 /hw/input
parentsm501: make SerialMM a child, export chardev property (diff)
downloadqemu-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.c8
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);