hw/char: Constify all Property

Acked-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
Richard Henderson
2024-12-15 12:54:40 -06:00
parent 4aef8b63e4
commit 312f37d18a
36 changed files with 38 additions and 38 deletions
+1 -1
View File
@@ -259,7 +259,7 @@ static const MemoryRegionOps avr_usart_ops = {
.impl = {.min_access_size = 1, .max_access_size = 1}
};
static Property avr_usart_properties[] = {
static const Property avr_usart_properties[] = {
DEFINE_PROP_CHR("chardev", AVRUsartState, chr),
DEFINE_PROP_END_OF_LIST(),
};
+1 -1
View File
@@ -290,7 +290,7 @@ static void bcm2835_aux_realize(DeviceState *dev, Error **errp)
bcm2835_aux_receive, NULL, NULL, s, NULL, true);
}
static Property bcm2835_aux_props[] = {
static const Property bcm2835_aux_props[] = {
DEFINE_PROP_CHR("chardev", BCM2835AuxState, chr),
DEFINE_PROP_END_OF_LIST(),
};
+1 -1
View File
@@ -617,7 +617,7 @@ static const VMStateDescription vmstate_cadence_uart = {
},
};
static Property cadence_uart_properties[] = {
static const Property cadence_uart_properties[] = {
DEFINE_PROP_CHR("chardev", CadenceUARTState, chr),
DEFINE_PROP_END_OF_LIST(),
};
+1 -1
View File
@@ -377,7 +377,7 @@ static const VMStateDescription cmsdk_apb_uart_vmstate = {
}
};
static Property cmsdk_apb_uart_properties[] = {
static const Property cmsdk_apb_uart_properties[] = {
DEFINE_PROP_CHR("chardev", CMSDKAPBUART, chr),
DEFINE_PROP_UINT32("pclk-frq", CMSDKAPBUART, pclk_frq, 0),
DEFINE_PROP_END_OF_LIST(),
+1 -1
View File
@@ -114,7 +114,7 @@ static void debugcon_isa_realizefn(DeviceState *dev, Error **errp)
isa->iobase, &s->io);
}
static Property debugcon_isa_properties[] = {
static const Property debugcon_isa_properties[] = {
DEFINE_PROP_UINT32("iobase", ISADebugconState, iobase, 0xe9),
DEFINE_PROP_CHR("chardev", ISADebugconState, state.chr),
DEFINE_PROP_UINT32("readback", ISADebugconState, state.readback, 0xe9),
+1 -1
View File
@@ -172,7 +172,7 @@ static const VMStateDescription vmstate_digic_uart = {
}
};
static Property digic_uart_properties[] = {
static const Property digic_uart_properties[] = {
DEFINE_PROP_CHR("chardev", DigicUartState, chr),
DEFINE_PROP_END_OF_LIST(),
};
+1 -1
View File
@@ -1089,7 +1089,7 @@ static void escc_realize(DeviceState *dev, Error **errp)
}
}
static Property escc_properties[] = {
static const Property escc_properties[] = {
DEFINE_PROP_UINT32("frequency", ESCCState, frequency, 0),
DEFINE_PROP_UINT32("it_shift", ESCCState, it_shift, 0),
DEFINE_PROP_BOOL("bit_swap", ESCCState, bit_swap, false),
+1 -1
View File
@@ -704,7 +704,7 @@ static void exynos4210_uart_realize(DeviceState *dev, Error **errp)
NULL, s, NULL, true);
}
static Property exynos4210_uart_properties[] = {
static const Property exynos4210_uart_properties[] = {
DEFINE_PROP_CHR("chardev", Exynos4210UartState, chr),
DEFINE_PROP_UINT32("channel", Exynos4210UartState, channel, 0),
DEFINE_PROP_UINT32("rx-size", Exynos4210UartState, rx.size, 16),
+1 -1
View File
@@ -241,7 +241,7 @@ static const VMStateDescription vmstate_goldfish_tty = {
}
};
static Property goldfish_tty_properties[] = {
static const Property goldfish_tty_properties[] = {
DEFINE_PROP_CHR("chardev", GoldfishTTYState, chr),
DEFINE_PROP_END_OF_LIST(),
};
+1 -1
View File
@@ -277,7 +277,7 @@ static void grlib_apbuart_reset(DeviceState *d)
uart->current = 0;
}
static Property grlib_apbuart_properties[] = {
static const Property grlib_apbuart_properties[] = {
DEFINE_PROP_CHR("chrdev", UART, chr),
DEFINE_PROP_END_OF_LIST(),
};
+1 -1
View File
@@ -508,7 +508,7 @@ static const VMStateDescription vmstate_ibex_uart = {
}
};
static Property ibex_uart_properties[] = {
static const Property ibex_uart_properties[] = {
DEFINE_PROP_CHR("chardev", IbexUartState, chr),
DEFINE_PROP_END_OF_LIST(),
};
+1 -1
View File
@@ -438,7 +438,7 @@ static void imx_serial_init(Object *obj)
sysbus_init_irq(sbd, &s->irq);
}
static Property imx_serial_properties[] = {
static const Property imx_serial_properties[] = {
DEFINE_PROP_CHR("chardev", IMXSerialState, chr),
DEFINE_PROP_END_OF_LIST(),
};
+1 -1
View File
@@ -558,7 +558,7 @@ static void ipoctal_realize(DeviceState *dev, Error **errp)
}
}
static Property ipoctal_properties[] = {
static const Property ipoctal_properties[] = {
DEFINE_PROP_CHR("chardev0", IPOctalState, ch[0].dev),
DEFINE_PROP_CHR("chardev1", IPOctalState, ch[1].dev),
DEFINE_PROP_CHR("chardev2", IPOctalState, ch[2].dev),
+1 -1
View File
@@ -312,7 +312,7 @@ static void mcf_uart_realize(DeviceState *dev, Error **errp)
mcf_uart_event, NULL, s, NULL, true);
}
static Property mcf_uart_properties[] = {
static const Property mcf_uart_properties[] = {
DEFINE_PROP_CHR("chardev", mcf_uart_state, chr),
DEFINE_PROP_END_OF_LIST(),
};
+1 -1
View File
@@ -304,7 +304,7 @@ static const VMStateDescription nrf51_uart_vmstate = {
}
};
static Property nrf51_uart_properties[] = {
static const Property nrf51_uart_properties[] = {
DEFINE_PROP_CHR("chardev", NRF51UARTState, chr),
DEFINE_PROP_END_OF_LIST(),
};
+1 -1
View File
@@ -603,7 +603,7 @@ bool parallel_mm_init(MemoryRegion *address_space,
return true;
}
static Property parallel_isa_properties[] = {
static const Property parallel_isa_properties[] = {
DEFINE_PROP_UINT32("index", ISAParallelState, index, -1),
DEFINE_PROP_UINT32("iobase", ISAParallelState, iobase, -1),
DEFINE_PROP_UINT32("irq", ISAParallelState, isairq, 7),
+1 -1
View File
@@ -603,7 +603,7 @@ static const VMStateDescription vmstate_pl011 = {
}
};
static Property pl011_properties[] = {
static const Property pl011_properties[] = {
DEFINE_PROP_CHR("chardev", PL011State, chr),
DEFINE_PROP_BOOL("migrate-clk", PL011State, migrate_clk, true),
DEFINE_PROP_END_OF_LIST(),
+1 -1
View File
@@ -319,7 +319,7 @@ static const VMStateDescription vmstate_rsci = {
}
};
static Property rsci_properties[] = {
static const Property rsci_properties[] = {
DEFINE_PROP_UINT64("input-freq", RSCIState, input_freq, 0),
DEFINE_PROP_CHR("chardev", RSCIState, chr),
DEFINE_PROP_END_OF_LIST(),
+1 -1
View File
@@ -333,7 +333,7 @@ static void console_reset(DeviceState *dev)
scon->write_errors = 0;
}
static Property console_properties[] = {
static const Property console_properties[] = {
DEFINE_PROP_CHR("chardev", SCLPConsoleLM, chr),
DEFINE_PROP_UINT32("write_errors", SCLPConsoleLM, write_errors, 0),
DEFINE_PROP_BOOL("echo", SCLPConsoleLM, echo, true),
+1 -1
View File
@@ -251,7 +251,7 @@ static void console_reset(DeviceState *dev)
scon->notify = false;
}
static Property console_properties[] = {
static const Property console_properties[] = {
DEFINE_PROP_CHR("chardev", SCLPConsole, chr),
DEFINE_PROP_END_OF_LIST(),
};

Some files were not shown because too many files have changed in this diff Show More