summaryrefslogtreecommitdiffstats
path: root/hw/input/adb.c
diff options
context:
space:
mode:
authorDavid Gibson2020-08-25 12:28:51 +0200
committerDavid Gibson2020-09-08 02:08:42 +0200
commit7e26c92ba816fccc40ab0a7c1364b65f226e2b21 (patch)
treece9d8b64bee86a8e1e2867253c09b57729d90fef /hw/input/adb.c
parentMerge remote-tracking branch 'remotes/huth-gitlab/tags/pull-request-2020-09-0... (diff)
downloadqemu-7e26c92ba816fccc40ab0a7c1364b65f226e2b21.tar.gz
qemu-7e26c92ba816fccc40ab0a7c1364b65f226e2b21.tar.xz
qemu-7e26c92ba816fccc40ab0a7c1364b65f226e2b21.zip
adb: Correct class size on TYPE_ADB_DEVICE
The TypeInfo incorrectly just lets the class size be inherited. It won't actually break things, since the class is abstract, but we should get it right. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'hw/input/adb.c')
-rw-r--r--hw/input/adb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/input/adb.c b/hw/input/adb.c
index 013fcc9c54..84331b9fce 100644
--- a/hw/input/adb.c
+++ b/hw/input/adb.c
@@ -309,6 +309,7 @@ static void adb_device_class_init(ObjectClass *oc, void *data)
static const TypeInfo adb_device_type_info = {
.name = TYPE_ADB_DEVICE,
.parent = TYPE_DEVICE,
+ .class_size = sizeof(ADBDeviceClass),
.instance_size = sizeof(ADBDevice),
.abstract = true,
.class_init = adb_device_class_init,