summary refs log tree commit diff stats
path: root/hw/i2c/microbit_i2c.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-12-21 14:16:11 +1100
committerRichard Henderson <richard.henderson@linaro.org>2023-12-29 11:17:30 +1100
commit01d9442a889f545a41151066f6a577822166d21e (patch)
treef943ebbf97125202d60e5ca7d4323cf21ab2ff0b /hw/i2c/microbit_i2c.c
parent2ebfd1c4ac5bfcc990babf4bb4f410eeb79f1afa (diff)
downloadfocaccia-qemu-01d9442a889f545a41151066f6a577822166d21e.tar.gz
focaccia-qemu-01d9442a889f545a41151066f6a577822166d21e.zip
hw/i2c: Constify VMState
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20231221031652.119827-31-richard.henderson@linaro.org>
Diffstat (limited to 'hw/i2c/microbit_i2c.c')
-rw-r--r--hw/i2c/microbit_i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i2c/microbit_i2c.c b/hw/i2c/microbit_i2c.c
index e92f9f84ea..24d36d15b0 100644
--- a/hw/i2c/microbit_i2c.c
+++ b/hw/i2c/microbit_i2c.c
@@ -80,7 +80,7 @@ static const VMStateDescription microbit_i2c_vmstate = {
     .name = TYPE_MICROBIT_I2C,
     .version_id = 1,
     .minimum_version_id = 1,
-    .fields = (VMStateField[]) {
+    .fields = (const VMStateField[]) {
         VMSTATE_UINT32_ARRAY(regs, MicrobitI2CState, MICROBIT_I2C_NREGS),
         VMSTATE_UINT32(read_idx, MicrobitI2CState),
         VMSTATE_END_OF_LIST()