summaryrefslogtreecommitdiffstats
path: root/rust/kernel/src/chrdev.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/kernel/src/chrdev.rs')
-rw-r--r--rust/kernel/src/chrdev.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/kernel/src/chrdev.rs b/rust/kernel/src/chrdev.rs
index 4606a7bd5a73..d32b9a0d584a 100644
--- a/rust/kernel/src/chrdev.rs
+++ b/rust/kernel/src/chrdev.rs
@@ -14,7 +14,7 @@ use crate::error::{Error, KernelResult};
use crate::file_operations;
use crate::types::CStr;
-pub fn builder(name: &'static CStr, minors: Range<u16>) -> KernelResult<Builder> {
+pub fn builder(name: CStr<'static>, minors: Range<u16>) -> KernelResult<Builder> {
Ok(Builder {
name,
minors,
@@ -23,7 +23,7 @@ pub fn builder(name: &'static CStr, minors: Range<u16>) -> KernelResult<Builder>
}
pub struct Builder {
- name: &'static CStr,
+ name: CStr<'static>,
minors: Range<u16>,
file_ops: Vec<&'static bindings::file_operations>,
}