mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
qom: Make InterfaceInfo[] uses const
Mechanical change using: $ sed -i -E 's/\(InterfaceInfo.?\[/\(const InterfaceInfo\[/g' \ $(git grep -lE '\(InterfaceInfo.?\[\]\)') Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20250424194905.82506-7-philmd@linaro.org>
This commit is contained in:
parent
231bf6dda1
commit
2cd09e47aa
230 changed files with 258 additions and 258 deletions
|
@ -42,7 +42,7 @@ static const TypeInfo usb_bus_info = {
|
|||
.parent = TYPE_BUS,
|
||||
.instance_size = sizeof(USBBus),
|
||||
.class_init = usb_bus_class_init,
|
||||
.interfaces = (InterfaceInfo[]) {
|
||||
.interfaces = (const InterfaceInfo[]) {
|
||||
{ TYPE_HOTPLUG_HANDLER },
|
||||
{ }
|
||||
}
|
||||
|
|
|
@ -1458,7 +1458,7 @@ static const TypeInfo ccid_info = {
|
|||
.parent = TYPE_USB_DEVICE,
|
||||
.instance_size = sizeof(USBCCIDState),
|
||||
.class_init = ccid_class_initfn,
|
||||
.interfaces = (InterfaceInfo[]) {
|
||||
.interfaces = (const InterfaceInfo[]) {
|
||||
{ TYPE_HOTPLUG_HANDLER },
|
||||
{ }
|
||||
}
|
||||
|
|
|
@ -172,7 +172,7 @@ static const TypeInfo ehci_pci_type_info = {
|
|||
.instance_finalize = usb_ehci_pci_finalize,
|
||||
.abstract = true,
|
||||
.class_init = ehci_class_init,
|
||||
.interfaces = (InterfaceInfo[]) {
|
||||
.interfaces = (const InterfaceInfo[]) {
|
||||
{ INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
||||
{ },
|
||||
},
|
||||
|
|
|
@ -149,7 +149,7 @@ static const TypeInfo ohci_pci_info = {
|
|||
.parent = TYPE_PCI_DEVICE,
|
||||
.instance_size = sizeof(OHCIPCIState),
|
||||
.class_init = ohci_pci_class_init,
|
||||
.interfaces = (InterfaceInfo[]) {
|
||||
.interfaces = (const InterfaceInfo[]) {
|
||||
{ INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
||||
{ },
|
||||
},
|
||||
|
|
|
@ -1278,7 +1278,7 @@ static const TypeInfo uhci_pci_type_info = {
|
|||
.class_size = sizeof(UHCIPCIDeviceClass),
|
||||
.abstract = true,
|
||||
.class_init = uhci_class_init,
|
||||
.interfaces = (InterfaceInfo[]) {
|
||||
.interfaces = (const InterfaceInfo[]) {
|
||||
{ INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
||||
{ },
|
||||
},
|
||||
|
|
|
@ -248,7 +248,7 @@ static const TypeInfo xhci_pci_info = {
|
|||
.class_init = xhci_class_init,
|
||||
.instance_init = xhci_instance_init,
|
||||
.abstract = true,
|
||||
.interfaces = (InterfaceInfo[]) {
|
||||
.interfaces = (const InterfaceInfo[]) {
|
||||
{ INTERFACE_PCIE_DEVICE },
|
||||
{ INTERFACE_CONVENTIONAL_PCI_DEVICE },
|
||||
{ }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue