diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2024-12-13 15:23:44 +0000 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2024-12-15 12:54:44 -0600 |
commit | f5ca2d6233c88464bcf2616bc8697247cb57bcc5 (patch) | |
tree | e284a811764c303461116d526eb2d2edae1afdf3 /hw | |
parent | 312f37d18ad53e2e62fdd2dda7c38322866d77f1 (diff) | |
download | qemu-f5ca2d6233c88464bcf2616bc8697247cb57bcc5.zip qemu-f5ca2d6233c88464bcf2616bc8697247cb57bcc5.tar.gz qemu-f5ca2d6233c88464bcf2616bc8697247cb57bcc5.tar.bz2 |
hw/core: Constify all Property
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/core/generic-loader.c | 2 | ||||
-rw-r--r-- | hw/core/guest-loader.c | 2 | ||||
-rw-r--r-- | hw/core/or-irq.c | 2 | ||||
-rw-r--r-- | hw/core/platform-bus.c | 2 | ||||
-rw-r--r-- | hw/core/split-irq.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/hw/core/generic-loader.c b/hw/core/generic-loader.c index ea8628b..c1cddec 100644 --- a/hw/core/generic-loader.c +++ b/hw/core/generic-loader.c @@ -179,7 +179,7 @@ static void generic_loader_unrealize(DeviceState *dev) qemu_unregister_reset(generic_loader_reset, dev); } -static Property generic_loader_props[] = { +static const Property generic_loader_props[] = { DEFINE_PROP_UINT64("addr", GenericLoaderState, addr, 0), DEFINE_PROP_UINT64("data", GenericLoaderState, data, 0), DEFINE_PROP_UINT8("data-len", GenericLoaderState, data_len, 0), diff --git a/hw/core/guest-loader.c b/hw/core/guest-loader.c index 391c875..74af00c 100644 --- a/hw/core/guest-loader.c +++ b/hw/core/guest-loader.c @@ -111,7 +111,7 @@ static void guest_loader_realize(DeviceState *dev, Error **errp) loader_insert_platform_data(s, size, errp); } -static Property guest_loader_props[] = { +static const Property guest_loader_props[] = { DEFINE_PROP_UINT64("addr", GuestLoaderState, addr, 0), DEFINE_PROP_STRING("kernel", GuestLoaderState, kernel), DEFINE_PROP_STRING("bootargs", GuestLoaderState, args), diff --git a/hw/core/or-irq.c b/hw/core/or-irq.c index b25468e..fc52796 100644 --- a/hw/core/or-irq.c +++ b/hw/core/or-irq.c @@ -115,7 +115,7 @@ static const VMStateDescription vmstate_or_irq = { }, }; -static Property or_irq_properties[] = { +static const Property or_irq_properties[] = { DEFINE_PROP_UINT16("num-lines", OrIRQState, num_lines, 1), DEFINE_PROP_END_OF_LIST(), }; diff --git a/hw/core/platform-bus.c b/hw/core/platform-bus.c index dc58bf5..a29c9c6 100644 --- a/hw/core/platform-bus.c +++ b/hw/core/platform-bus.c @@ -204,7 +204,7 @@ static void platform_bus_realize(DeviceState *dev, Error **errp) plaform_bus_refresh_irqs(pbus); } -static Property platform_bus_properties[] = { +static const Property platform_bus_properties[] = { DEFINE_PROP_UINT32("num_irqs", PlatformBusDevice, num_irqs, 0), DEFINE_PROP_UINT32("mmio_size", PlatformBusDevice, mmio_size, 0), DEFINE_PROP_END_OF_LIST() diff --git a/hw/core/split-irq.c b/hw/core/split-irq.c index 3b90af2..40fc7e2 100644 --- a/hw/core/split-irq.c +++ b/hw/core/split-irq.c @@ -59,7 +59,7 @@ static void split_irq_realize(DeviceState *dev, Error **errp) qdev_init_gpio_out(dev, s->out_irq, s->num_lines); } -static Property split_irq_properties[] = { +static const Property split_irq_properties[] = { DEFINE_PROP_UINT16("num-lines", SplitIRQ, num_lines, 1), DEFINE_PROP_END_OF_LIST(), }; |