]> git.ipfire.org Git - thirdparty/qemu.git/commit
rust/hpet: Drop BqlCell wrapper for num_timers
authorZhao Liu <zhao1.liu@intel.com>
Mon, 26 May 2025 11:54:21 +0000 (13:54 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 6 Jun 2025 12:32:54 +0000 (14:32 +0200)
commit869b0afa4fafb73ba5a3c556b0ef5e5c1a39e717
tree4e1c20e5c944bb86773c8c5912692917b7455e05
parent4d2fec89cb8651ee760ff9296c8d3e2ade4cc063
rust/hpet: Drop BqlCell wrapper for num_timers

Now that the num_timers field is initialized as a property, someone may
change its default value using qdev_prop_set_uint8(), but the value is
fixed after the Rust code sees it first.  Since there is no need to modify
it after realize(), it is not to be necessary to have a BqlCell wrapper.

Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Link: https://lore.kernel.org/r/20250520152750.2542612-4-zhao1.liu@intel.com
[Remove .into() as well. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rust/hw/timer/hpet/src/device.rs