diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2024-12-13 15:36:52 +0000 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2024-12-15 12:55:01 -0600 |
commit | 6f31905dbe94e89b1c8471ac6d252e9c0f89d2f5 (patch) | |
tree | d0c2e97ae5720acac75e82856f6b5bb057b40766 /hw/i2c/aspeed_i2c.c | |
parent | e923f5e1b853ac80e96b416143300af9d189af8e (diff) | |
download | qemu-6f31905dbe94e89b1c8471ac6d252e9c0f89d2f5.zip qemu-6f31905dbe94e89b1c8471ac6d252e9c0f89d2f5.tar.gz qemu-6f31905dbe94e89b1c8471ac6d252e9c0f89d2f5.tar.bz2 |
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>
Diffstat (limited to 'hw/i2c/aspeed_i2c.c')
-rw-r--r-- | hw/i2c/aspeed_i2c.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/i2c/aspeed_i2c.c b/hw/i2c/aspeed_i2c.c index 3ae22cb..2ea68c3 100644 --- a/hw/i2c/aspeed_i2c.c +++ b/hw/i2c/aspeed_i2c.c @@ -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 *), |