summary refs log tree commit diff stats
path: root/hw/adc/max111x.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-12-21 14:16:03 +1100
committerRichard Henderson <richard.henderson@linaro.org>2023-12-29 11:17:30 +1100
commit993676279ead57d38af798d6a3d564cbf9366b06 (patch)
treecc770428705ff92c5058b066a91ca37f121d648e /hw/adc/max111x.c
parentc559ba5720376e39a05c75e52e67d5998d2b1422 (diff)
downloadfocaccia-qemu-993676279ead57d38af798d6a3d564cbf9366b06.tar.gz
focaccia-qemu-993676279ead57d38af798d6a3d564cbf9366b06.zip
hw/adc: Constify VMState
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20231221031652.119827-23-richard.henderson@linaro.org>
Diffstat (limited to 'hw/adc/max111x.c')
-rw-r--r--hw/adc/max111x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/adc/max111x.c b/hw/adc/max111x.c
index e8bf4cccd4..957d177e1c 100644
--- a/hw/adc/max111x.c
+++ b/hw/adc/max111x.c
@@ -96,7 +96,7 @@ static const VMStateDescription vmstate_max111x = {
     .name = "max111x",
     .version_id = 1,
     .minimum_version_id = 1,
-    .fields = (VMStateField[]) {
+    .fields = (const VMStateField[]) {
         VMSTATE_SSI_PERIPHERAL(parent_obj, MAX111xState),
         VMSTATE_UINT8(tb1, MAX111xState),
         VMSTATE_UINT8(rb2, MAX111xState),