Skip to content

Commit 263d0bc

Browse files
committed
Rename argument.
1 parent 061c2c6 commit 263d0bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/kernel/miscdev.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ impl<T: Sync> Registration<T> {
4242
pub fn new_pinned<F: FileOperations>(
4343
name: CStr<'static>,
4444
minor: Option<i32>,
45-
state: T,
45+
context: T,
4646
) -> KernelResult<Pin<Box<Self>>> {
47-
let mut r = Pin::from(Box::try_new(Self::new(state))?);
47+
let mut r = Pin::from(Box::try_new(Self::new(context))?);
4848
r.as_mut().register::<F>(name, minor)?;
4949
Ok(r)
5050
}

0 commit comments

Comments
 (0)