mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
hw/rtc: Constify all Property
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
766bade2da
commit
93c9015bc5
6 changed files with 6 additions and 6 deletions
|
@ -311,7 +311,7 @@ static const VMStateDescription allwinner_rtc_vmstate = {
|
|||
}
|
||||
};
|
||||
|
||||
static Property allwinner_rtc_properties[] = {
|
||||
static const Property allwinner_rtc_properties[] = {
|
||||
DEFINE_PROP_INT32("base-year", AwRtcState, base_year, 0),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
|
|
@ -286,7 +286,7 @@ static void goldfish_rtc_realize(DeviceState *d, Error **errp)
|
|||
s->timer = timer_new_ns(rtc_clock, goldfish_rtc_interrupt, s);
|
||||
}
|
||||
|
||||
static Property goldfish_rtc_properties[] = {
|
||||
static const Property goldfish_rtc_properties[] = {
|
||||
DEFINE_PROP_BOOL("big-endian", GoldfishRTCState, big_endian,
|
||||
false),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
|
|
|
@ -77,7 +77,7 @@ static void m48txx_isa_toggle_lock(Nvram *obj, int lock)
|
|||
m48t59_toggle_lock(&d->state, lock);
|
||||
}
|
||||
|
||||
static Property m48t59_isa_properties[] = {
|
||||
static const Property m48t59_isa_properties[] = {
|
||||
DEFINE_PROP_INT32("base-year", M48txxISAState, state.base_year, 0),
|
||||
DEFINE_PROP_UINT32("iobase", M48txxISAState, io_base, 0x74),
|
||||
DEFINE_PROP_UINT8("irq", M48txxISAState, isairq, 8),
|
||||
|
|
|
@ -618,7 +618,7 @@ static void m48txx_sysbus_toggle_lock(Nvram *obj, int lock)
|
|||
m48t59_toggle_lock(&d->state, lock);
|
||||
}
|
||||
|
||||
static Property m48t59_sysbus_properties[] = {
|
||||
static const Property m48t59_sysbus_properties[] = {
|
||||
DEFINE_PROP_INT32("base-year", M48txxSysBusState, state.base_year, 0),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
|
|
@ -960,7 +960,7 @@ MC146818RtcState *mc146818_rtc_init(ISABus *bus, int base_year,
|
|||
return s;
|
||||
}
|
||||
|
||||
static Property mc146818rtc_properties[] = {
|
||||
static const Property mc146818rtc_properties[] = {
|
||||
DEFINE_PROP_INT32("base_year", MC146818RtcState, base_year, 1980),
|
||||
DEFINE_PROP_UINT16("iobase", MC146818RtcState, io_base, RTC_ISA_BASE),
|
||||
DEFINE_PROP_UINT8("irq", MC146818RtcState, isairq, RTC_ISA_IRQ),
|
||||
|
|
|
@ -319,7 +319,7 @@ static const VMStateDescription vmstate_pl031 = {
|
|||
}
|
||||
};
|
||||
|
||||
static Property pl031_properties[] = {
|
||||
static const Property pl031_properties[] = {
|
||||
/*
|
||||
* True to correctly migrate the tick offset of the RTC. False to
|
||||
* obtain backward migration compatibility with older QEMU versions,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue