summary refs log tree commit diff stats
path: root/hw/input/stellaris_gamepad.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-12-21 14:16:14 +1100
committerRichard Henderson <richard.henderson@linaro.org>2023-12-29 11:17:30 +1100
commitaf0f07dfc7ce56a944c38d872b7d4502178e6948 (patch)
tree01df440ebb836f7fb4260ebdab693c9ce521812e /hw/input/stellaris_gamepad.c
parent8595c05422415e8a8d26f68fc0ddfd3083544878 (diff)
downloadfocaccia-qemu-af0f07dfc7ce56a944c38d872b7d4502178e6948.tar.gz
focaccia-qemu-af0f07dfc7ce56a944c38d872b7d4502178e6948.zip
hw/input: Constify VMState
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20231221031652.119827-34-richard.henderson@linaro.org>
Diffstat (limited to 'hw/input/stellaris_gamepad.c')
-rw-r--r--hw/input/stellaris_gamepad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/input/stellaris_gamepad.c b/hw/input/stellaris_gamepad.c
index 9dfa620e29..17ee42b9fc 100644
--- a/hw/input/stellaris_gamepad.c
+++ b/hw/input/stellaris_gamepad.c
@@ -35,7 +35,7 @@ static const VMStateDescription vmstate_stellaris_gamepad = {
     .name = "stellaris_gamepad",
     .version_id = 4,
     .minimum_version_id = 4,
-    .fields = (VMStateField[]) {
+    .fields = (const VMStateField[]) {
         VMSTATE_VARRAY_UINT32(pressed, StellarisGamepad, num_buttons,
                               0, vmstate_info_uint8, uint8_t),
         VMSTATE_END_OF_LIST()