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
This commit is contained in:
parent
a8f080215f
commit
4f09cf54fa
1 changed files with 1 additions and 1 deletions
|
|
@ -909,7 +909,7 @@ declare_properties! {
|
|||
HPETState,
|
||||
num_timers,
|
||||
unsafe { &qdev_prop_usize },
|
||||
u8,
|
||||
usize,
|
||||
default = HPET_MIN_TIMERS
|
||||
),
|
||||
define_property!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue