File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change 3
3
use super :: capability:: Capability ;
4
4
use accessor:: array;
5
5
use accessor:: Mapper ;
6
- use core:: { convert:: TryFrom , fmt } ;
6
+ use core:: convert:: TryFrom ;
7
7
8
8
/// A type alias to [`Doorbell`] register for backward compability.
9
9
#[ deprecated = "Use `Doorbell` instead of `Register`." ]
@@ -48,11 +48,7 @@ impl Doorbell {
48
48
rw_field ! ( 0 ..=7 , doorbell_target, "Doorbell Target" , u8 ) ;
49
49
rw_field ! ( 16 ..=31 , doorbell_stream_id, "Doorbell Stream ID" , u16 ) ;
50
50
}
51
- impl fmt:: Debug for Doorbell {
52
- fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
53
- f. debug_struct ( "doorbell::Register" )
54
- . field ( "doorbell_target" , & self . doorbell_target ( ) )
55
- . field ( "doorbell_stream_id" , & self . doorbell_stream_id ( ) )
56
- . finish ( )
57
- }
58
- }
51
+ impl_debug_from_methods ! ( Doorbell {
52
+ doorbell_target,
53
+ doorbell_stream_id,
54
+ } ) ;
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ use accessor::array;
4
4
use accessor:: Mapper ;
5
5
6
6
pub use capability:: Capability ;
7
+ pub use doorbell:: Doorbell ;
7
8
pub use operational:: { Operational , PortRegisterSet } ;
8
9
pub use runtime:: InterrupterRegisterSet ;
9
10
pub use runtime:: Runtime ;
22
23
/// Host Controller Capability Register
23
24
pub capability : Capability < M > ,
24
25
/// Doorbell Array
25
- pub doorbell : array:: ReadWrite < doorbell :: Doorbell , M > ,
26
+ pub doorbell : array:: ReadWrite < Doorbell , M > ,
26
27
/// Host Controller Operational Register
27
28
pub operational : Operational < M > ,
28
29
/// Port Register Set Array
You can’t perform that action at this time.
0 commit comments