[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 14/71] hw/adc: Constify all Property
From: |
Richard Henderson |
Subject: |
[PATCH 14/71] hw/adc: Constify all Property |
Date: |
Fri, 13 Dec 2024 13:06:48 -0600 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
hw/adc/aspeed_adc.c | 2 +-
hw/adc/npcm7xx_adc.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/adc/aspeed_adc.c b/hw/adc/aspeed_adc.c
index 598f2bdf48..f94c6f2be3 100644
--- a/hw/adc/aspeed_adc.c
+++ b/hw/adc/aspeed_adc.c
@@ -286,7 +286,7 @@ static const VMStateDescription vmstate_aspeed_adc_engine =
{
}
};
-static Property aspeed_adc_engine_properties[] = {
+static const Property aspeed_adc_engine_properties[] = {
DEFINE_PROP_UINT32("engine-id", AspeedADCEngineState, engine_id, 0),
DEFINE_PROP_UINT32("nr-channels", AspeedADCEngineState, nr_channels, 0),
DEFINE_PROP_END_OF_LIST(),
diff --git a/hw/adc/npcm7xx_adc.c b/hw/adc/npcm7xx_adc.c
index de8469dae4..1781ff4c0b 100644
--- a/hw/adc/npcm7xx_adc.c
+++ b/hw/adc/npcm7xx_adc.c
@@ -267,7 +267,7 @@ static const VMStateDescription vmstate_npcm7xx_adc = {
},
};
-static Property npcm7xx_timer_properties[] = {
+static const Property npcm7xx_timer_properties[] = {
DEFINE_PROP_UINT32("iref", NPCM7xxADCState, iref,
NPCM7XX_ADC_DEFAULT_IREF),
DEFINE_PROP_END_OF_LIST(),
};
--
2.43.0
- Re: [PATCH 07/71] target/ppc: Remove empty property list, (continued)
- [PATCH 08/71] target/riscv: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 09/71] target/s390x: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 11/71] cpu-target: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 10/71] target/sparc: Constify all Property and PropertyInfo, Richard Henderson, 2024/12/13
- [PATCH 13/71] hw/acpi: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 12/71] hw/9pfs: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 14/71] hw/adc: Constify all Property,
Richard Henderson <=
- [PATCH 18/71] hw/block/xen-block: Unexport PropertyInfo, Richard Henderson, 2024/12/13
- [PATCH 17/71] hw/avr: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 15/71] hw/arm: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 19/71] hw/block: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 16/71] hw/audio: Constify all Property, Richard Henderson, 2024/12/13
- [PATCH 20/71] hw/char: Constify all Property, Richard Henderson, 2024/12/13