[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 16/27] i8259.c: convert to use DEFINE_TYPES() macro
- To: pbonzini@xxxxxxxxxx, richard.henderson@xxxxxxxxxx, mst@xxxxxxxxxx, sstabellini@xxxxxxxxxx, anthony@xxxxxxxxxxxxxx, edgar.iglesias@xxxxxxxxx, qemu-devel@xxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx
- From: Mark Cave-Ayland <mark.caveayland@xxxxxxxxxxx>
- Date: Fri, 16 Oct 2026 15:19:22 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nutanix.com; dmarc=pass action=none header.from=nutanix.com; dkim=pass header.d=nutanix.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=4Zzg/I05mP5n7TY2uFK7TpWDkHes0ZRgUzLc2R50k64=; b=ZeE+TUJukb9eiofgDg0MbFlhBF+MTGPPSn9uc6c/NrYoeQO5Vv+SrvQe7vYl5luoASWtrmkqs0aOHKe8rwe38MJVUnsodHOg9uuO0kgejjP+CCgkA5vyjM40VS2+7XH78UeYjYvWGeqDl4e675QXySXYqCyU1R/NWUqbkAQUp5P74BOspvnvRR/NvLmDy3uu3RbmbetT3XKabE8+ttx3dQk+egxFMpp0as5eQ7THQ4LuHkTE5SfHhdzqRts5qVTwNd6tFkj0XaNFOVLHOesrbBg6COOPX1tgKPfq4JC/FrkljBQx/6xsnFmTsNWtJSR6T41GC78ozqHYI+PWJRM5Aw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=YGHkxAcfccQJNVMIybVsJ9qBmZUuevjH/rO/7X8kRukR3GCa8MFwxAVSHzpSJ/uFKE5RVGShZVP7Dih+bWq0eDE2l145VxyP5EyHQ6OSHC+bhGfrkqruaIvNX6MX3UfjhgOf64TiVx/qmEBt+AijS5WReDC3lClA/cr5qM9RnlsfzzaMTY5hmm5WcJwzZBtG0BLfAYfqmweiquRbWlomxjC4GHw+5l9U1Y2Pn+3akTbmROAKhmvebR+iJwLI6kMbM0xf0SL6r9Msosf8N5aW4HGkHZ5IGrnpzKH6a+NyFJoSTKyY0Y5Th9ehl4crOQ2km/OgbOX01CcHokmPJvAcyw==
- Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=proofpoint20171006 header.d=nutanix.com header.i="@nutanix.com" header.h="Content-Transfer-Encoding:Content-Type:Date:From:In-Reply-To:Message-ID:MIME-Version:References:Subject:To"; dkim=pass header.s=selector1 header.d=nutanix.com header.i="@nutanix.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
- Authentication-results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nutanix.com;
- Delivery-date: Fri, 16 Oct 2026 14:21:53 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
Signed-off-by: Mark Cave-Ayland <mark.caveayland@xxxxxxxxxxx>
Reviewed-by: Peter Maydell <peter.maydell@xxxxxxxxxx>
---
hw/intc/i8259.c | 21 +++++++++------------
1 file changed, 9 insertions(+), 12 deletions(-)
diff --git a/hw/intc/i8259.c b/hw/intc/i8259.c
index 4b34e5a649..e5fa0f2e5e 100644
--- a/hw/intc/i8259.c
+++ b/hw/intc/i8259.c
@@ -447,17 +447,14 @@ static void i8259_class_init(ObjectClass *klass, const
void *data)
device_class_set_legacy_reset(dc, i8259_reset);
}
-static const TypeInfo i8259_info = {
- .name = TYPE_I8259,
- .instance_size = sizeof(I8259State),
- .parent = TYPE_I8259_COMMON,
- .class_init = i8259_class_init,
- .class_size = sizeof(I8259Class),
+static const TypeInfo i8259_type_infos[] = {
+ {
+ .name = TYPE_I8259,
+ .instance_size = sizeof(I8259State),
+ .parent = TYPE_I8259_COMMON,
+ .class_init = i8259_class_init,
+ .class_size = sizeof(I8259Class),
+ },
};
-static void i8259_register_types(void)
-{
- type_register_static(&i8259_info);
-}
-
-type_init(i8259_register_types)
+DEFINE_TYPES(i8259_type_infos)
--
2.43.0
|