diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2024-12-13 16:36:46 +0000 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2024-12-15 12:55:56 -0600 |
| commit | 8a1852f8c20c444b8869478bf6411e3d0befc37b (patch) | |
| tree | 5bc827c8faaed068d057d6fc993d1a164e542651 /hw/pci/pcie_port.c | |
| parent | 909a5c0afa1dd52e8145716fc36d12ba6b74721f (diff) | |
| download | focaccia-qemu-8a1852f8c20c444b8869478bf6411e3d0befc37b.tar.gz focaccia-qemu-8a1852f8c20c444b8869478bf6411e3d0befc37b.zip | |
hw/pci: Constify all Property
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to '')
| -rw-r--r-- | hw/pci/pcie_port.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/pci/pcie_port.c b/hw/pci/pcie_port.c index 9f978ba164..bac2822e98 100644 --- a/hw/pci/pcie_port.c +++ b/hw/pci/pcie_port.c @@ -111,7 +111,7 @@ void pcie_chassis_del_slot(PCIESlot *s) QLIST_REMOVE(s, next); } -static Property pcie_port_props[] = { +static const Property pcie_port_props[] = { DEFINE_PROP_UINT8("port", PCIEPort, port, 0), DEFINE_PROP_UINT16("aer_log_max", PCIEPort, parent_obj.parent_obj.exp.aer_log.log_max, @@ -204,7 +204,7 @@ static const TypeInfo pcie_port_type_info = { .class_init = pcie_port_class_init, }; -static Property pcie_slot_props[] = { +static const Property pcie_slot_props[] = { DEFINE_PROP_UINT8("chassis", PCIESlot, chassis, 0), DEFINE_PROP_UINT16("slot", PCIESlot, slot, 0), DEFINE_PROP_BOOL("hotplug", PCIESlot, hotplug, true), |