@@ -26,7 +26,7 @@ use crate::drivers::net::network_irqhandler;
2626// one MUST adjust the associated From<u32>
2727// implementation, in order catch all cases correctly,
2828// as this function uses the catch-all "_" case!
29- #[ allow( non_camel_case_types) ]
29+ #[ allow( non_camel_case_types, clippy :: upper_case_acronyms ) ]
3030#[ derive( Debug , PartialEq , Eq , PartialOrd , Ord , Clone , Copy ) ]
3131#[ repr( u32 ) ]
3232pub enum DevId {
@@ -136,8 +136,8 @@ impl ComCfg {
136136 self . com_cfg . get_max_queue_size ( sel)
137137 }
138138
139- pub fn is_queue_ready ( & mut self , sel : u32 ) -> bool {
140- self . com_cfg . is_queue_ready ( sel)
139+ pub fn get_queue_ready ( & mut self , sel : u32 ) -> bool {
140+ self . com_cfg . get_queue_ready ( sel)
141141 }
142142
143143 /// Returns the device status field.
@@ -314,7 +314,7 @@ impl IsrStatus {
314314 let ptr = & mut registers. interrupt_status as * mut _ ;
315315 let raw: & ' static mut IsrStatusRaw = unsafe { & mut * ( ptr as * mut IsrStatusRaw ) } ;
316316
317- IsrStatus { raw : raw }
317+ IsrStatus { raw }
318318 }
319319
320320 pub fn is_interrupt ( & self ) -> bool {
@@ -508,7 +508,7 @@ impl MmioRegisterLayout {
508508 }
509509 }
510510
511- pub fn is_queue_ready ( & mut self , sel : u32 ) -> bool {
511+ pub fn get_queue_ready ( & mut self , sel : u32 ) -> bool {
512512 unsafe {
513513 write_volatile ( & mut self . queue_sel , sel) ;
514514 read_volatile ( & self . queue_ready ) != 0
0 commit comments