Skip to content

Commit e7ad88e

Browse files
committed
rust: rename platdev to platform.
The module contains not only devices but also drivers, so reflect that in the name. It is also meant to be consistent with other buses like amba, pci, etc. This is in preparation for converting it to use the common `driver` to help implementing driver support. Signed-off-by: Wedson Almeida Filho <[email protected]>
1 parent 6387ac8 commit e7ad88e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

drivers/char/hw_random/bcm2835_rng_rust.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
use kernel::{
99
c_str, file::File, file_operations::FileOperations, io_buffer::IoBufferWriter, miscdev,
10-
of::ConstOfMatchTable, platdev, platdev::PlatformDriver, prelude::*,
10+
of::ConstOfMatchTable, platform, platform::PlatformDriver, prelude::*,
1111
};
1212

1313
module! {
@@ -54,7 +54,7 @@ impl PlatformDriver for RngDriver {
5454
}
5555

5656
struct RngModule {
57-
_pdev: Pin<Box<platdev::Registration>>,
57+
_pdev: Pin<Box<platform::Registration>>,
5858
}
5959

6060
impl KernelModule for RngModule {
@@ -63,7 +63,7 @@ impl KernelModule for RngModule {
6363
ConstOfMatchTable::new_const([c_str!("brcm,bcm2835-rng")]);
6464

6565
let pdev =
66-
platdev::Registration::new_pinned::<RngDriver>(name, Some(&OF_MATCH_TBL), module)?;
66+
platform::Registration::new_pinned::<RngDriver>(name, Some(&OF_MATCH_TBL), module)?;
6767

6868
Ok(RngModule { _pdev: pdev })
6969
}

rust/kernel/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ pub mod io_buffer;
8484
pub mod io_mem;
8585
pub mod iov_iter;
8686
pub mod of;
87-
pub mod platdev;
87+
pub mod platform;
8888
mod types;
8989
pub mod user_ptr;
9090

File renamed without changes.

0 commit comments

Comments
 (0)