aboutsummaryrefslogtreecommitdiff
path: root/hw/rtc/aspeed_rtc.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2023-12-21 14:16:30 +1100
committerRichard Henderson <richard.henderson@linaro.org>2023-12-30 07:38:06 +1100
commita80cc662255c1f67adcc86d6e279fb0d6684ef5e (patch)
tree3cddb0542d2e7c5b016ebbb1c1da3940bdd3890b /hw/rtc/aspeed_rtc.c
parenta2c2fe57c2442ea3f7fe78a1dd8770b279b5dce6 (diff)
hw/rtc: Constify VMState
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20231221031652.119827-50-richard.henderson@linaro.org>
Diffstat (limited to 'hw/rtc/aspeed_rtc.c')
-rw-r--r--hw/rtc/aspeed_rtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/rtc/aspeed_rtc.c b/hw/rtc/aspeed_rtc.c
index fa861e2d49..589d9a5a7a 100644
--- a/hw/rtc/aspeed_rtc.c
+++ b/hw/rtc/aspeed_rtc.c
@@ -137,7 +137,7 @@ static const MemoryRegionOps aspeed_rtc_ops = {
static const VMStateDescription vmstate_aspeed_rtc = {
.name = TYPE_ASPEED_RTC,
.version_id = 2,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT32_ARRAY(reg, AspeedRtcState, 0x18),
VMSTATE_INT64(offset, AspeedRtcState),
VMSTATE_END_OF_LIST()