hw/adc: Constify all Property

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
Richard Henderson 2024-12-13 14:59:51 +00:00
parent c76bc08df2
commit b5e4f90e64
2 changed files with 2 additions and 2 deletions

View file

@ -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(),

View file

@ -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(),
};