[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 32/34] xilinx_axienet: Use typedef name for instance_size
From: |
Eduardo Habkost |
Subject: |
[PULL 32/34] xilinx_axienet: Use typedef name for instance_size |
Date: |
Tue, 8 Sep 2020 16:01:21 -0400 |
This makes the code consistent with the rest of QOM code in QEMU,
and will make automated conversion to type declaration macros
simpler.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20200824215936.2961951-5-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
hw/net/xilinx_axienet.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/net/xilinx_axienet.c b/hw/net/xilinx_axienet.c
index 10a33cb4a5..4e13786e50 100644
--- a/hw/net/xilinx_axienet.c
+++ b/hw/net/xilinx_axienet.c
@@ -1045,7 +1045,7 @@ static const TypeInfo xilinx_enet_info = {
static const TypeInfo xilinx_enet_data_stream_info = {
.name = TYPE_XILINX_AXI_ENET_DATA_STREAM,
.parent = TYPE_OBJECT,
- .instance_size = sizeof(struct XilinxAXIEnetStreamSlave),
+ .instance_size = sizeof(XilinxAXIEnetStreamSlave),
.class_init = xilinx_enet_data_stream_class_init,
.interfaces = (InterfaceInfo[]) {
{ TYPE_STREAM_SLAVE },
@@ -1056,7 +1056,7 @@ static const TypeInfo xilinx_enet_data_stream_info = {
static const TypeInfo xilinx_enet_control_stream_info = {
.name = TYPE_XILINX_AXI_ENET_CONTROL_STREAM,
.parent = TYPE_OBJECT,
- .instance_size = sizeof(struct XilinxAXIEnetStreamSlave),
+ .instance_size = sizeof(XilinxAXIEnetStreamSlave),
.class_init = xilinx_enet_control_stream_class_init,
.interfaces = (InterfaceInfo[]) {
{ TYPE_STREAM_SLAVE },
--
2.26.2
- [PULL 25/34] usb: Rename USB_SERIAL_DEV to USB_SERIAL, (continued)
- [PULL 25/34] usb: Rename USB_SERIAL_DEV to USB_SERIAL, Eduardo Habkost, 2020/09/08
- [PULL 28/34] tusb6010: Rename TUSB to TUSB6010, Eduardo Habkost, 2020/09/08
- [PULL 29/34] xilinx_axidma: Use typedef name for instance_size, Eduardo Habkost, 2020/09/08
- [PULL 26/34] vfio: Rename PCI_VFIO to VFIO_PCI, Eduardo Habkost, 2020/09/08
- [PULL 31/34] lpc_ich9: Use typedef name for instance_size, Eduardo Habkost, 2020/09/08
- [PULL 30/34] omap_intc: Use typedef name for instance_size, Eduardo Habkost, 2020/09/08
- [PULL 27/34] pc87312: Rename TYPE_PC87312_SUPERIO to TYPE_PC87312, Eduardo Habkost, 2020/09/08
- [PULL 33/34] vhost-user-vga: Use typedef name for instance_size, Eduardo Habkost, 2020/09/08
- [PULL 34/34] virtio-vga: Use typedef name for instance_size, Eduardo Habkost, 2020/09/08
- [PULL 09/34] Move QOM typedefs and add missing includes, Eduardo Habkost, 2020/09/08
- [PULL 32/34] xilinx_axienet: Use typedef name for instance_size,
Eduardo Habkost <=
- Re: [PULL 00/34] QOM boilerplate cleanup (v2), Peter Maydell, 2020/09/08