summary refs log tree commit diff stats
path: root/hw/misc/macio/gpio.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-12-21 14:16:43 +1100
committerRichard Henderson <richard.henderson@linaro.org>2023-12-30 07:38:06 +1100
commitce933d70ec7de9266114566e95a55e610ee0c966 (patch)
treedf965e944bce93835f74262b7005aa963fc300a6 /hw/misc/macio/gpio.c
parent45bc669ee673cf6b72e3dc7071e96115ae0406f6 (diff)
downloadfocaccia-qemu-ce933d70ec7de9266114566e95a55e610ee0c966.tar.gz
focaccia-qemu-ce933d70ec7de9266114566e95a55e610ee0c966.zip
hw/misc/macio: Constify VMState
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20231221031652.119827-63-richard.henderson@linaro.org>
Diffstat (limited to 'hw/misc/macio/gpio.c')
-rw-r--r--hw/misc/macio/gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/misc/macio/gpio.c b/hw/misc/macio/gpio.c
index 4deb330471..549563747d 100644
--- a/hw/misc/macio/gpio.c
+++ b/hw/misc/macio/gpio.c
@@ -168,7 +168,7 @@ static const VMStateDescription vmstate_macio_gpio = {
     .name = "macio_gpio",
     .version_id = 0,
     .minimum_version_id = 0,
-    .fields = (VMStateField[]) {
+    .fields = (const VMStateField[]) {
         VMSTATE_UINT8_ARRAY(gpio_levels, MacIOGPIOState, 8),
         VMSTATE_UINT8_ARRAY(gpio_regs, MacIOGPIOState, 36),
         VMSTATE_END_OF_LIST()