summaryrefslogtreecommitdiff
path: root/hw/misc/vmport.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2013-06-22 08:07:06 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2013-07-04 17:42:44 +0200
commitd67f679d99778d9e07ec470ebf803249c2bea625 (patch)
tree63401b8d458ac96d28631c8f24bab962872a753c /hw/misc/vmport.c
parent0659097de2b47470b4d706c2634240f54700c807 (diff)
downloadqemu-d67f679d99778d9e07ec470ebf803249c2bea625.tar.gz
vmport: Disentangle read handler type from portio
In case the latter may vanish one day, make sure the vmport read handler type will remain unaffected. This is also conceptually cleaner. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/misc/vmport.c')
-rw-r--r--hw/misc/vmport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/misc/vmport.c b/hw/misc/vmport.c
index 8363dfdf92..86390728f5 100644
--- a/hw/misc/vmport.c
+++ b/hw/misc/vmport.c
@@ -43,13 +43,13 @@ typedef struct VMPortState
ISADevice parent_obj;
MemoryRegion io;
- IOPortReadFunc *func[VMPORT_ENTRIES];
+ VMPortReadFunc *func[VMPORT_ENTRIES];
void *opaque[VMPORT_ENTRIES];
} VMPortState;
static VMPortState *port_state;
-void vmport_register(unsigned char command, IOPortReadFunc *func, void *opaque)
+void vmport_register(unsigned char command, VMPortReadFunc *func, void *opaque)
{
if (command >= VMPORT_ENTRIES)
return;