aboutsummaryrefslogtreecommitdiff
path: root/rust/hw/timer
diff options
context:
space:
mode:
authorZhao Liu <zhao1.liu@intel.com>2025-09-21 00:05:18 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2025-09-22 17:17:19 +0200
commit4f09cf54faad32d41dfb5ccdd4c0e7871b636274 (patch)
tree361db92de342057cad0fe65cc00aea3b901ffb1c /rust/hw/timer
parenta8f080215f79d211c4be0f896ad5f32dbc3b7c03 (diff)
downloadqemu-4f09cf54faad32d41dfb5ccdd4c0e7871b636274.zip
qemu-4f09cf54faad32d41dfb5ccdd4c0e7871b636274.tar.gz
qemu-4f09cf54faad32d41dfb5ccdd4c0e7871b636274.tar.bz2
rust/hpet: Clean up type mismatch for num_timers property
Now `num_timers` is `usize` other than `u8`. Although the type field in `declare_properties` macro hasn't been used, it's better to explicitly point this out and clean up this before doing other property work. Signed-off-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Link: https://lore.kernel.org/r/20250920160520.3699591-11-zhao1.liu@intel.com
Diffstat (limited to 'rust/hw/timer')
-rw-r--r--rust/hw/timer/hpet/src/device.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/hw/timer/hpet/src/device.rs b/rust/hw/timer/hpet/src/device.rs
index 3cfbe9c..fce7541 100644
--- a/rust/hw/timer/hpet/src/device.rs
+++ b/rust/hw/timer/hpet/src/device.rs
@@ -909,7 +909,7 @@ declare_properties! {
HPETState,
num_timers,
unsafe { &qdev_prop_usize },
- u8,
+ usize,
default = HPET_MIN_TIMERS
),
define_property!(