mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
hw/i2c: Constify all Property
Acked-by: Corey Minyard <cminyard@mvista.com> Reviewed-by: Cédric Le Goater <clg@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
e923f5e1b8
commit
6f31905dbe
4 changed files with 5 additions and 5 deletions
|
@ -1258,7 +1258,7 @@ static void aspeed_i2c_realize(DeviceState *dev, Error **errp)
|
|||
}
|
||||
}
|
||||
|
||||
static Property aspeed_i2c_properties[] = {
|
||||
static const Property aspeed_i2c_properties[] = {
|
||||
DEFINE_PROP_LINK("dram", AspeedI2CState, dram_mr,
|
||||
TYPE_MEMORY_REGION, MemoryRegion *),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
|
@ -1446,7 +1446,7 @@ static void aspeed_i2c_bus_realize(DeviceState *dev, Error **errp)
|
|||
sysbus_init_mmio(SYS_BUS_DEVICE(dev), &s->mr_pool);
|
||||
}
|
||||
|
||||
static Property aspeed_i2c_bus_properties[] = {
|
||||
static const Property aspeed_i2c_bus_properties[] = {
|
||||
DEFINE_PROP_UINT8("bus-id", AspeedI2CBus, id, 0),
|
||||
DEFINE_PROP_LINK("controller", AspeedI2CBus, controller, TYPE_ASPEED_I2C,
|
||||
AspeedI2CState *),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue