@@ -79,7 +79,7 @@ impl Device {
7979 ///
8080 /// Callers must ensure that `ptr` is valid, non-null, and has a non-zero reference count,
8181 /// i.e. it must be ensured that the reference count of the C `struct device` `ptr` points to
82- /// can't drop to zero, for the duration of this function call and the entire duration when the
82+ /// can't drop to zero, for the duration of this function callhe entire duration when the
8383 /// returned reference exists.
8484 pub unsafe fn as_ref < ' a > ( ptr : * mut bindings:: device ) -> & ' a Self {
8585 // SAFETY: Guaranteed by the safety requirements of the function.
@@ -176,7 +176,7 @@ impl Device {
176176 /// `KERN_*`constants, for example, `KERN_CRIT`, `KERN_ALERT`, etc.
177177 #[ cfg_attr( not( CONFIG_PRINTK ) , allow( unused_variables) ) ]
178178 unsafe fn printk ( & self , klevel : & [ u8 ] , msg : fmt:: Arguments < ' _ > ) {
179- // SAFETY: `klevel` is null-terminated and one of the kernel constants. `self.as_raw`
179+ // SAFETY: `klevel` is null-terminatedne of the kernel constants. `self.as_raw`
180180 // is valid because `self` is valid. The "%pA" format string expects a pointer to
181181 // `fmt::Arguments`, which is what we're passing as the last argument.
182182 #[ cfg( CONFIG_PRINTK ) ]
@@ -228,7 +228,7 @@ macro_rules! dev_printk {
228228/// Equivalent to the kernel's `dev_emerg` macro.
229229///
230230/// Mimics the interface of [`std::print!`]. More information about the syntax is available from
231- /// [`core::fmt`] and [`alloc::format!`] .
231+ /// [`core::fmt`].
232232///
233233/// [`std::print!`]: https://doc.rust-lang.org/std/macro.print.html
234234///
@@ -253,7 +253,7 @@ macro_rules! dev_emerg {
253253/// Equivalent to the kernel's `dev_alert` macro.
254254///
255255/// Mimics the interface of [`std::print!`]. More information about the syntax is available from
256- /// [`core::fmt`] and [`alloc::format!`] .
256+ /// [`core::fmt`].
257257///
258258/// [`std::print!`]: https://doc.rust-lang.org/std/macro.print.html
259259///
@@ -278,7 +278,7 @@ macro_rules! dev_alert {
278278/// Equivalent to the kernel's `dev_crit` macro.
279279///
280280/// Mimics the interface of [`std::print!`]. More information about the syntax is available from
281- /// [`core::fmt`] and [`alloc::format!`] .
281+ /// [`core::fmt`].
282282///
283283/// [`std::print!`]: https://doc.rust-lang.org/std/macro.print.html
284284///
@@ -303,7 +303,7 @@ macro_rules! dev_crit {
303303/// Equivalent to the kernel's `dev_err` macro.
304304///
305305/// Mimics the interface of [`std::print!`]. More information about the syntax is available from
306- /// [`core::fmt`] and [`alloc::format!`] .
306+ /// [`core::fmt`].
307307///
308308/// [`std::print!`]: https://doc.rust-lang.org/std/macro.print.html
309309///
@@ -328,7 +328,7 @@ macro_rules! dev_err {
328328/// Equivalent to the kernel's `dev_warn` macro.
329329///
330330/// Mimics the interface of [`std::print!`]. More information about the syntax is available from
331- /// [`core::fmt`] and [`alloc::format!`] .
331+ /// [`core::fmt`].
332332///
333333/// [`std::print!`]: https://doc.rust-lang.org/std/macro.print.html
334334///
@@ -353,7 +353,7 @@ macro_rules! dev_warn {
353353/// Equivalent to the kernel's `dev_notice` macro.
354354///
355355/// Mimics the interface of [`std::print!`]. More information about the syntax is available from
356- /// [`core::fmt`] and [`alloc::format!`] .
356+ /// [`core::fmt`].
357357///
358358/// [`std::print!`]: https://doc.rust-lang.org/std/macro.print.html
359359///
@@ -378,7 +378,7 @@ macro_rules! dev_notice {
378378/// Equivalent to the kernel's `dev_info` macro.
379379///
380380/// Mimics the interface of [`std::print!`]. More information about the syntax is available from
381- /// [`core::fmt`] and [`alloc::format!`] .
381+ /// [`core::fmt`].
382382///
383383/// [`std::print!`]: https://doc.rust-lang.org/std/macro.print.html
384384///
@@ -403,7 +403,7 @@ macro_rules! dev_info {
403403/// Equivalent to the kernel's `dev_dbg` macro, except that it doesn't support dynamic debug yet.
404404///
405405/// Mimics the interface of [`std::print!`]. More information about the syntax is available from
406- /// [`core::fmt`] and [`alloc::format!`] .
406+ /// [`core::fmt`].
407407///
408408/// [`std::print!`]: https://doc.rust-lang.org/std/macro.print.html
409409///
0 commit comments