[PATCH] rust: hpet: rename hpet module to "device"

Paolo Bonzini posted 1 patch 6 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20250514035405.295861-1-pbonzini@redhat.com
rust/hw/timer/hpet/src/{hpet.rs => device.rs} | 0
rust/hw/timer/hpet/src/lib.rs                 | 2 +-
2 files changed, 1 insertion(+), 1 deletion(-)
rename rust/hw/timer/hpet/src/{hpet.rs => device.rs} (100%)
[PATCH] rust: hpet: rename hpet module to "device"
Posted by Paolo Bonzini 6 months ago
Follow a similar convention as pl011.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 rust/hw/timer/hpet/src/{hpet.rs => device.rs} | 0
 rust/hw/timer/hpet/src/lib.rs                 | 2 +-
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename rust/hw/timer/hpet/src/{hpet.rs => device.rs} (100%)

diff --git a/rust/hw/timer/hpet/src/hpet.rs b/rust/hw/timer/hpet/src/device.rs
similarity index 100%
rename from rust/hw/timer/hpet/src/hpet.rs
rename to rust/hw/timer/hpet/src/device.rs
diff --git a/rust/hw/timer/hpet/src/lib.rs b/rust/hw/timer/hpet/src/lib.rs
index 1954584a87e..d4b6e015506 100644
--- a/rust/hw/timer/hpet/src/lib.rs
+++ b/rust/hw/timer/hpet/src/lib.rs
@@ -8,6 +8,6 @@
 //! Precision Event Timers) device in QEMU.
 
 pub mod fw_cfg;
-pub mod hpet;
+pub mod device;
 
 pub const TYPE_HPET: &::std::ffi::CStr = c"hpet";
-- 
2.49.0
Re: [PATCH] rust: hpet: rename hpet module to "device"
Posted by Zhao Liu 6 months ago
On Wed, May 14, 2025 at 05:54:05AM +0200, Paolo Bonzini wrote:
> Date: Wed, 14 May 2025 05:54:05 +0200
> From: Paolo Bonzini <pbonzini@redhat.com>
> Subject: [PATCH] rust: hpet: rename hpet module to "device"
> X-Mailer: git-send-email 2.49.0
> 
> Follow a similar convention as pl011.
> 
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
>  rust/hw/timer/hpet/src/{hpet.rs => device.rs} | 0
>  rust/hw/timer/hpet/src/lib.rs                 | 2 +-
>  2 files changed, 1 insertion(+), 1 deletion(-)
>  rename rust/hw/timer/hpet/src/{hpet.rs => device.rs} (100%)

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>