summary refs log tree commit diff stats
path: root/hw/adc/stm32f2xx_adc.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/stm32f2xx_adc.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/stm32f2xx_adc.c')
-rw-r--r--hw/adc/stm32f2xx_adc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/adc/stm32f2xx_adc.c b/hw/adc/stm32f2xx_adc.c
index 01a0b14e69..e9df6ea53f 100644
--- a/hw/adc/stm32f2xx_adc.c
+++ b/hw/adc/stm32f2xx_adc.c
@@ -254,7 +254,7 @@ static const VMStateDescription vmstate_stm32f2xx_adc = {
     .name = TYPE_STM32F2XX_ADC,
     .version_id = 1,
     .minimum_version_id = 1,
-    .fields = (VMStateField[]) {
+    .fields = (const VMStateField[]) {
         VMSTATE_UINT32(adc_sr, STM32F2XXADCState),
         VMSTATE_UINT32(adc_cr1, STM32F2XXADCState),
         VMSTATE_UINT32(adc_cr2, STM32F2XXADCState),