[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 22/71] hw/adc: Constify VMState
From: |
Richard Henderson |
Subject: |
[PATCH v2 22/71] hw/adc: Constify VMState |
Date: |
Thu, 21 Dec 2023 14:16:03 +1100 |
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
hw/adc/aspeed_adc.c | 2 +-
hw/adc/max111x.c | 2 +-
hw/adc/npcm7xx_adc.c | 2 +-
hw/adc/stm32f2xx_adc.c | 2 +-
hw/adc/zynq-xadc.c | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/hw/adc/aspeed_adc.c b/hw/adc/aspeed_adc.c
index 0d29663129..68bdbc73b0 100644
--- a/hw/adc/aspeed_adc.c
+++ b/hw/adc/aspeed_adc.c
@@ -280,7 +280,7 @@ static const VMStateDescription vmstate_aspeed_adc_engine =
{
.name = TYPE_ASPEED_ADC,
.version_id = 1,
.minimum_version_id = 1,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT32_ARRAY(regs, AspeedADCEngineState, ASPEED_ADC_NR_REGS),
VMSTATE_END_OF_LIST(),
}
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),
diff --git a/hw/adc/npcm7xx_adc.c b/hw/adc/npcm7xx_adc.c
index bc6f3f55e6..c6647eec6d 100644
--- a/hw/adc/npcm7xx_adc.c
+++ b/hw/adc/npcm7xx_adc.c
@@ -253,7 +253,7 @@ static const VMStateDescription vmstate_npcm7xx_adc = {
.name = "npcm7xx-adc",
.version_id = 0,
.minimum_version_id = 0,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_TIMER(conv_timer, NPCM7xxADCState),
VMSTATE_UINT32(con, NPCM7xxADCState),
VMSTATE_UINT32(data, NPCM7xxADCState),
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),
diff --git a/hw/adc/zynq-xadc.c b/hw/adc/zynq-xadc.c
index 032e19cbd0..34268319a4 100644
--- a/hw/adc/zynq-xadc.c
+++ b/hw/adc/zynq-xadc.c
@@ -269,7 +269,7 @@ static const VMStateDescription vmstate_zynq_xadc = {
.name = "zynq-xadc",
.version_id = 1,
.minimum_version_id = 1,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT32_ARRAY(regs, ZynqXADCState, ZYNQ_XADC_NUM_IO_REGS),
VMSTATE_UINT16_ARRAY(xadc_regs, ZynqXADCState,
ZYNQ_XADC_NUM_ADC_REGS),
--
2.34.1
- [PATCH v2 12/71] target/mips: Constify VMState in machine.c, (continued)
- [PATCH v2 12/71] target/mips: Constify VMState in machine.c, Richard Henderson, 2023/12/20
- [PATCH v2 13/71] target/openrisc: Constify VMState in machine.c, Richard Henderson, 2023/12/20
- [PATCH v2 14/71] target/ppc: Constify VMState in machine.c, Richard Henderson, 2023/12/20
- [PATCH v2 15/71] target/riscv: Constify VMState in machine.c, Richard Henderson, 2023/12/20
- [PATCH v2 16/71] target/s390x: Constify VMState in machine.c, Richard Henderson, 2023/12/20
- [PATCH v2 17/71] target/sparc: Constify VMState in machine.c, Richard Henderson, 2023/12/20
- [PATCH v2 18/71] hw/arm: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 19/71] hw/core: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 20/71] hw/9pfs: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 21/71] hw/acpi: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 22/71] hw/adc: Constify VMState,
Richard Henderson <=
- [PATCH v2 23/71] hw/audio: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 24/71] hw/block: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 25/71] hw/char: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 26/71] hw/display: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 27/71] hw/dma: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 28/71] hw/gpio: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 29/71] hw/hyperv: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 30/71] hw/i2c: Constify VMState, Richard Henderson, 2023/12/20
- [PATCH v2 31/71] hw/i386: Constify VMState, Richard Henderson, 2023/12/20