]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/timer: Constify all Property
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 13 Dec 2024 16:51:42 +0000 (16:51 +0000)
committerRichard Henderson <richard.henderson@linaro.org>
Sun, 15 Dec 2024 18:56:26 +0000 (12:56 -0600)
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
20 files changed:
hw/timer/a9gtimer.c
hw/timer/allwinner-a10-pit.c
hw/timer/arm_mptimer.c
hw/timer/arm_timer.c
hw/timer/aspeed_timer.c
hw/timer/avr_timer16.c
hw/timer/grlib_gptimer.c
hw/timer/hpet.c
hw/timer/i8254_common.c
hw/timer/ibex_timer.c
hw/timer/mss-timer.c
hw/timer/nrf51_timer.c
hw/timer/pxa2xx_timer.c
hw/timer/renesas_cmt.c
hw/timer/renesas_tmr.c
hw/timer/sifive_pwm.c
hw/timer/slavio_timer.c
hw/timer/sse-timer.c
hw/timer/stm32f2xx_timer.c
hw/timer/xilinx_timer.c

index 8091ec18c7f26a37b6f2fe779f011108c9e10f6f..c0a91bab0c8bedb045fcd6ee4dada7b60ab134bb 100644 (file)
@@ -373,7 +373,7 @@ static const VMStateDescription vmstate_a9_gtimer = {
     }
 };
 
-static Property a9_gtimer_properties[] = {
+static const Property a9_gtimer_properties[] = {
     DEFINE_PROP_UINT32("num-cpu", A9GTimerState, num_cpu, 0),
     DEFINE_PROP_END_OF_LIST()
 };
index d488e9782b2c12f3761b6ae59c8ac26cd2417255..2904ccfb423a5671d6a4e0bd7fc27010f3a3c8f7 100644 (file)
@@ -188,7 +188,7 @@ static const MemoryRegionOps a10_pit_ops = {
     .endianness = DEVICE_NATIVE_ENDIAN,
 };
 
-static Property a10_pit_properties[] = {
+static const Property a10_pit_properties[] = {
     DEFINE_PROP_UINT32("clk0-freq", AwA10PITState, clk_freq[0], 0),
     DEFINE_PROP_UINT32("clk1-freq", AwA10PITState, clk_freq[1], 0),
     DEFINE_PROP_UINT32("clk2-freq", AwA10PITState, clk_freq[2], 0),
index defa30b46dd2a728f18ed139fbb89df456cda247..6244a7a84f310e94b175b2d5e84d2c0a364d25c5 100644 (file)
@@ -300,7 +300,7 @@ static const VMStateDescription vmstate_arm_mptimer = {
     }
 };
 
-static Property arm_mptimer_properties[] = {
+static const Property arm_mptimer_properties[] = {
     DEFINE_PROP_UINT32("num-cpu", ARMMPTimerState, num_cpu, 0),
     DEFINE_PROP_END_OF_LIST()
 };
index 0940e03f1d9a9dcb3c17f891fb5780ea3e901097..dfa034296c073b5d1fb6148f615f21c0749e345b 100644 (file)
@@ -387,7 +387,7 @@ static const TypeInfo icp_pit_info = {
     .instance_init = icp_pit_init,
 };
 
-static Property sp804_properties[] = {
+static const Property sp804_properties[] = {
     DEFINE_PROP_UINT32("freq0", SP804State, freq0, 1000000),
     DEFINE_PROP_UINT32("freq1", SP804State, freq1, 1000000),
     DEFINE_PROP_END_OF_LIST(),
index 149f7cc5a6aac44d17d73655de4aa16d5a7d87c7..4c16b5016e0a32840e63547e6acfa2e017c439c7 100644 (file)
@@ -674,7 +674,7 @@ static const VMStateDescription vmstate_aspeed_timer_state = {
     }
 };
 
-static Property aspeed_timer_properties[] = {
+static const Property aspeed_timer_properties[] = {
     DEFINE_PROP_LINK("scu", AspeedTimerCtrlState, scu, TYPE_ASPEED_SCU,
                      AspeedSCUState *),
     DEFINE_PROP_END_OF_LIST(),
index 421920054fa7ef184fc588d0409b100ea8338777..2e3ce83c4317b2a543d1d5dd55b343db5c0e09ff 100644 (file)
@@ -542,7 +542,7 @@ static const MemoryRegionOps avr_timer16_ifr_ops = {
     .impl = {.max_access_size = 1}
 };
 
-static Property avr_timer16_properties[] = {
+static const Property avr_timer16_properties[] = {
     DEFINE_PROP_UINT8("id", struct AVRTimer16State, id, 0),
     DEFINE_PROP_UINT64("cpu-frequency-hz", struct AVRTimer16State,
                        cpu_freq_hz, 0),
index 6ef08f25fd999de0c756cc047bb810243635d183..a7428ed938c39e5afbe4486d5cd95b2757085c03 100644 (file)
@@ -403,7 +403,7 @@ static void grlib_gptimer_realize(DeviceState *dev, Error **errp)
     sysbus_init_mmio(sbd, &unit->iomem);
 }
 
-static Property grlib_gptimer_properties[] = {
+static const Property grlib_gptimer_properties[] = {
     DEFINE_PROP_UINT32("frequency", GPTimerUnit, freq_hz,   40000000),
     DEFINE_PROP_UINT32("irq-line",  GPTimerUnit, irq_line,  8),
     DEFINE_PROP_UINT32("nr-timers", GPTimerUnit, nr_timers, 2),
index 5399f1b2a3f73bf5db0d522e7ec7cc82a39914e9..46886c379ed31cab677d20adffbb9d20e7528832 100644 (file)
@@ -745,7 +745,7 @@ static void hpet_realize(DeviceState *dev, Error **errp)
     qdev_init_gpio_out(dev, &s->pit_enabled, 1);
 }
 
-static Property hpet_device_properties[] = {
+static const Property hpet_device_properties[] = {
     DEFINE_PROP_UINT8("timers", HPETState, num_timers, HPET_MIN_TIMERS),
     DEFINE_PROP_BIT("msi", HPETState, flags, HPET_MSI_SUPPORT, false),
     DEFINE_PROP_UINT32(HPET_INTCAP, HPETState, intcap, 0),
index 28fdabc321879efe3a35196a420f56860ebf8665..953c1e11eb36bd47dc3ddf803892867ef684acfd 100644 (file)
@@ -238,7 +238,7 @@ static const VMStateDescription vmstate_pit_common = {
     }
 };
 
-static Property pit_common_properties[] = {
+static const Property pit_common_properties[] = {
     DEFINE_PROP_UINT32("iobase", PITCommonState, iobase,  -1),
     DEFINE_PROP_END_OF_LIST(),
 };
index 2bdcff532ddafc5d3e47f9c9beeea7061ae2633d..fba4466a8984c1730cb676ce9cde7ab4127627a0 100644 (file)
@@ -263,7 +263,7 @@ static const VMStateDescription vmstate_ibex_timer = {
     }
 };
 
-static Property ibex_timer_properties[] = {
+static const Property ibex_timer_properties[] = {
     DEFINE_PROP_UINT32("timebase-freq", IbexTimerState, timebase_freq, 10000),
     DEFINE_PROP_END_OF_LIST(),
 };
index b66aed56eadfb32a8b08761d77eb7615067e7098..e5c5cd6a84ed9052f59f18af8476d5a05fb5a51b 100644 (file)
@@ -279,7 +279,7 @@ static const VMStateDescription vmstate_mss_timer = {
     }
 };
 
-static Property mss_timer_properties[] = {
+static const Property mss_timer_properties[] = {
     /* Libero GUI shows 100Mhz as default for clocks */
     DEFINE_PROP_UINT32("clock-frequency", MSSTimerState, freq_hz,
                       100 * 1000000),
index 35b0e62d5b5e8d0fdf77c7d188f24b62d1be0c9c..48fccec1bfc1951f466955631242ab49fc49f50b 100644 (file)
@@ -379,7 +379,7 @@ static const VMStateDescription vmstate_nrf51_timer = {
     }
 };
 
-static Property nrf51_timer_properties[] = {
+static const Property nrf51_timer_properties[] = {
     DEFINE_PROP_UINT8("id", NRF51TimerState, id, 0),
     DEFINE_PROP_END_OF_LIST(),
 };
index 3234bbb1f4ad21e358d278299303721cb5c6af1b..345145bfa808b72a32903bc7d0507dd78fe46cad 100644 (file)
@@ -549,7 +549,7 @@ static const VMStateDescription vmstate_pxa2xx_timer_regs = {
     }
 };
 
-static Property pxa25x_timer_dev_properties[] = {
+static const Property pxa25x_timer_dev_properties[] = {
     DEFINE_PROP_UINT32("freq", PXA2xxTimerInfo, freq, PXA25X_FREQ),
     DEFINE_PROP_BIT("tm4", PXA2xxTimerInfo, flags,
                     PXA2XX_TIMER_HAVE_TM4, false),
index cd59b08c876a9531aec82f74ee7b077e2d380062..6d451fa86b3c6ef652ef39d89cd11fe7ec71c0d0 100644 (file)
@@ -253,7 +253,7 @@ static const VMStateDescription vmstate_rcmt = {
     }
 };
 
-static Property rcmt_properties[] = {
+static const Property rcmt_properties[] = {
     DEFINE_PROP_UINT64("input-freq", RCMTState, input_freq, 0),
     DEFINE_PROP_END_OF_LIST(),
 };
index a93e075fcdacdb916060f563f09118cd25c4d9f5..890f803cf8f9f82f7a0c19b58fa9de88ec065215 100644 (file)
@@ -463,7 +463,7 @@ static const VMStateDescription vmstate_rtmr = {
     }
 };
 
-static Property rtmr_properties[] = {
+static const Property rtmr_properties[] = {
     DEFINE_PROP_UINT64("input-freq", RTMRState, input_freq, 0),
     DEFINE_PROP_END_OF_LIST(),
 };
index 4602fc1a616b920d09829d35325785c1e41107f8..042c89c67a972abc8d813568d94f4cedac7dd6ef 100644 (file)
@@ -404,7 +404,7 @@ static const VMStateDescription vmstate_sifive_pwm = {
     }
 };
 
-static Property sifive_pwm_properties[] = {
+static const Property sifive_pwm_properties[] = {
     /* 0.5Ghz per spec after FSBL */
     DEFINE_PROP_UINT64("clock-frequency", struct SiFivePwmState,
                        freq_hz, 500000000ULL),
index 12cb3bac97fe802773c399e1487640edbdffbb77..32991f443638a40aff95780cd58754459ba7ce3c 100644 (file)
@@ -420,7 +420,7 @@ static void slavio_timer_init(Object *obj)
     }
 }
 
-static Property slavio_timer_properties[] = {
+static const Property slavio_timer_properties[] = {
     DEFINE_PROP_UINT32("num_cpus",  SLAVIO_TIMERState, num_cpus,  0),
     DEFINE_PROP_END_OF_LIST(),
 };
index 115b0138c87fb227da79045cfb6fe48ae1c00eeb..6b7a67941c451d99bfb4be4a1f4dc009353f28f5 100644 (file)
@@ -440,7 +440,7 @@ static const VMStateDescription sse_timer_vmstate = {
     }
 };
 
-static Property sse_timer_properties[] = {
+static const Property sse_timer_properties[] = {
     DEFINE_PROP_LINK("counter", SSETimer, counter, TYPE_SSE_COUNTER, SSECounter *),
     DEFINE_PROP_END_OF_LIST(),
 };
index 16b47887a5eef70bca81dd679460d59d83e621d3..d9d745cd76f7c68c007a6650bd3d6cd4af9b1d1f 100644 (file)
@@ -298,7 +298,7 @@ static const VMStateDescription vmstate_stm32f2xx_timer = {
     }
 };
 
-static Property stm32f2xx_timer_properties[] = {
+static const Property stm32f2xx_timer_properties[] = {
     DEFINE_PROP_UINT64("clock-frequency", struct STM32F2XXTimerState,
                        freq_hz, 1000000000),
     DEFINE_PROP_END_OF_LIST(),
index 32a9df69e0b37e7c36cee1e93816df3176fe5586..7fe3e83baa5383ae02153fbb951e05de26bcf6ad 100644 (file)
@@ -242,7 +242,7 @@ static void xilinx_timer_init(Object *obj)
     sysbus_init_irq(SYS_BUS_DEVICE(obj), &t->irq);
 }
 
-static Property xilinx_timer_properties[] = {
+static const Property xilinx_timer_properties[] = {
     DEFINE_PROP_UINT32("clock-frequency", XpsTimerState, freq_hz, 62 * 1000000),
     DEFINE_PROP_UINT8("one-timer-only", XpsTimerState, one_timer_only, 0),
     DEFINE_PROP_END_OF_LIST(),