[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 50/67] hw/rtc: Constify all Property
From: |
Richard Henderson |
Subject: |
[PULL 50/67] hw/rtc: Constify all Property |
Date: |
Sun, 15 Dec 2024 13:05:16 -0600 |
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
hw/rtc/allwinner-rtc.c | 2 +-
hw/rtc/goldfish_rtc.c | 2 +-
hw/rtc/m48t59-isa.c | 2 +-
hw/rtc/m48t59.c | 2 +-
hw/rtc/mc146818rtc.c | 2 +-
hw/rtc/pl031.c | 2 +-
6 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/hw/rtc/allwinner-rtc.c b/hw/rtc/allwinner-rtc.c
index 1057d6a57f..838db72136 100644
--- a/hw/rtc/allwinner-rtc.c
+++ b/hw/rtc/allwinner-rtc.c
@@ -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(),
};
diff --git a/hw/rtc/goldfish_rtc.c b/hw/rtc/goldfish_rtc.c
index a6dfbf89f3..389f192efa 100644
--- a/hw/rtc/goldfish_rtc.c
+++ b/hw/rtc/goldfish_rtc.c
@@ -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(),
diff --git a/hw/rtc/m48t59-isa.c b/hw/rtc/m48t59-isa.c
index b642b82680..51f80d27ef 100644
--- a/hw/rtc/m48t59-isa.c
+++ b/hw/rtc/m48t59-isa.c
@@ -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),
diff --git a/hw/rtc/m48t59.c b/hw/rtc/m48t59.c
index 90299ea56f..5a2c7b4abd 100644
--- a/hw/rtc/m48t59.c
+++ b/hw/rtc/m48t59.c
@@ -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(),
};
diff --git a/hw/rtc/mc146818rtc.c b/hw/rtc/mc146818rtc.c
index 8ccee9a385..973ed9914d 100644
--- a/hw/rtc/mc146818rtc.c
+++ b/hw/rtc/mc146818rtc.c
@@ -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),
diff --git a/hw/rtc/pl031.c b/hw/rtc/pl031.c
index 563bb4b446..1dc8e6e00f 100644
--- a/hw/rtc/pl031.c
+++ b/hw/rtc/pl031.c
@@ -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,
--
2.43.0
- [PULL 43/67] hw/nvram: Constify all Property, (continued)
- [PULL 43/67] hw/nvram: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 44/67] hw/pci-bridge: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 45/67] hw/pci-host: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 46/67] hw/pci: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 47/67] hw/ppc: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 42/67] hw/nvme: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 51/67] hw/rx: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 54/67] hw/sd: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 53/67] hw/scsi: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 48/67] hw/remote: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 50/67] hw/rtc: Constify all Property,
Richard Henderson <=
- [PULL 52/67] hw/s390x: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 58/67] hw/timer: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 57/67] hw/ssi: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 60/67] hw/ufs: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 59/67] hw/tpm: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 49/67] hw/riscv: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 64/67] hw/watchdog: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 63/67] hw/virtio: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 55/67] hw/sparc: Constify all Property, Richard Henderson, 2024/12/15
- [PULL 67/67] docs: Constify all Property in examples, Richard Henderson, 2024/12/15