summary refs log tree commit diff stats
path: root/hw/nvram/npcm7xx_otp.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-12-21 14:16:23 +1100
committerRichard Henderson <richard.henderson@linaro.org>2023-12-30 07:38:06 +1100
commit18d10e6175646c4e96c475f3ef481ffc6886c78b (patch)
tree903c418c0c9562aca8f80043ff5c13a55621b76a /hw/nvram/npcm7xx_otp.c
parent1de81b426ca563303d4fd6ba5a5d44d632a44e89 (diff)
downloadfocaccia-qemu-18d10e6175646c4e96c475f3ef481ffc6886c78b.tar.gz
focaccia-qemu-18d10e6175646c4e96c475f3ef481ffc6886c78b.zip
hw/nvram: Constify VMState
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20231221031652.119827-43-richard.henderson@linaro.org>
Diffstat (limited to 'hw/nvram/npcm7xx_otp.c')
-rw-r--r--hw/nvram/npcm7xx_otp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/nvram/npcm7xx_otp.c b/hw/nvram/npcm7xx_otp.c
index c61f2fc1aa..f00ebfa931 100644
--- a/hw/nvram/npcm7xx_otp.c
+++ b/hw/nvram/npcm7xx_otp.c
@@ -384,7 +384,7 @@ static const VMStateDescription vmstate_npcm7xx_otp = {
     .name = "npcm7xx-otp",
     .version_id = 0,
     .minimum_version_id = 0,
-    .fields = (VMStateField[]) {
+    .fields = (const VMStateField[]) {
         VMSTATE_UINT32_ARRAY(regs, NPCM7xxOTPState, NPCM7XX_OTP_NR_REGS),
         VMSTATE_UINT8_ARRAY(array, NPCM7xxOTPState, NPCM7XX_OTP_ARRAY_BYTES),
         VMSTATE_END_OF_LIST(),