Skip to content

Commit

Permalink
Merge pull request torvalds#607 from wedsonaf/platform-rename
Browse files Browse the repository at this point in the history
rust: rename `platdev` to `platform`.
  • Loading branch information
wedsonaf committed Jan 4, 2022
2 parents 4f082c4 + e7ad88e commit 73bd4bb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions drivers/char/hw_random/bcm2835_rng_rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

use kernel::{
c_str, file::File, file_operations::FileOperations, io_buffer::IoBufferWriter, miscdev,
of::ConstOfMatchTable, platdev, platdev::PlatformDriver, prelude::*,
of::ConstOfMatchTable, platform, platform::PlatformDriver, prelude::*,
};

module! {
Expand Down Expand Up @@ -54,7 +54,7 @@ impl PlatformDriver for RngDriver {
}

struct RngModule {
_pdev: Pin<Box<platdev::Registration>>,
_pdev: Pin<Box<platform::Registration>>,
}

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

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

Ok(RngModule { _pdev: pdev })
}
Expand Down
2 changes: 1 addition & 1 deletion rust/kernel/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ pub mod io_buffer;
pub mod io_mem;
pub mod iov_iter;
pub mod of;
pub mod platdev;
pub mod platform;
mod types;
pub mod user_ptr;

Expand Down
File renamed without changes.

0 comments on commit 73bd4bb

Please sign in to comment.