]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/rtc: Constify all Property
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 13 Dec 2024 16:44:13 +0000 (16:44 +0000)
committerRichard Henderson <richard.henderson@linaro.org>
Sun, 15 Dec 2024 18:56:06 +0000 (12:56 -0600)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
hw/rtc/allwinner-rtc.c
hw/rtc/goldfish_rtc.c
hw/rtc/m48t59-isa.c
hw/rtc/m48t59.c
hw/rtc/mc146818rtc.c
hw/rtc/pl031.c

index 1057d6a57f219273df473904fa4c24c33ad66936..838db7213621001e2b7a3c5344c4deaea7457c13 100644 (file)
@@ -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(),
 };
index a6dfbf89f34adea3b0a6072eb123a380ee91f075..389f192efa4aaa9e7034ee9d5112d3e1b9a017aa 100644 (file)
@@ -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(),
index b642b82680d8b1a8ccdcc2aed2d52a3f8d32f624..51f80d27ef39b91fb23ccd05b749a2d29de904a5 100644 (file)
@@ -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),
index 90299ea56fe3d181a4b241e851702f083782664f..5a2c7b4abdddeb7d8db34b6828fcd54f6df451fb 100644 (file)
@@ -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(),
 };
index 8ccee9a385de7eca246597c94d43e6e44bf62b16..973ed9914d05c7eded9f765aef4e6734e2d60d27 100644 (file)
@@ -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),
index 563bb4b446ebdfd16049baf9fab42c4ece155bda..1dc8e6e00ff50263b3cb55d56df4927d3b112938 100644 (file)
@@ -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,