mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
hw/core: Constify all Property
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
312f37d18a
commit
f5ca2d6233
5 changed files with 5 additions and 5 deletions
|
@ -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),
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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(),
|
||||
};
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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(),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue