summary refs log tree commit diff stats
path: root/hw/gpio/gpio_key.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/gpio/gpio_key.c')
-rw-r--r--hw/gpio/gpio_key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/gpio/gpio_key.c b/hw/gpio/gpio_key.c
index 74f6138356..61bb587058 100644
--- a/hw/gpio/gpio_key.c
+++ b/hw/gpio/gpio_key.c
@@ -45,7 +45,7 @@ static const VMStateDescription vmstate_gpio_key = {
     .name = "gpio-key",
     .version_id = 1,
     .minimum_version_id = 1,
-    .fields = (VMStateField[]) {
+    .fields = (const VMStateField[]) {
         VMSTATE_TIMER_PTR(timer, GPIOKEYState),
         VMSTATE_END_OF_LIST()
     }