File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -167,7 +167,9 @@ impl Node {
167167 false
168168 }
169169 #[ cfg( CONFIG_OF ) ]
170- unsafe { bindings:: of_node_is_root ( self . raw_node ) }
170+ unsafe {
171+ bindings:: of_node_is_root ( self . raw_node )
172+ }
171173 }
172174
173175 /// Returns the parent node, if any.
@@ -505,7 +507,9 @@ pub fn root() -> Option<Node> {
505507 None
506508 }
507509 #[ cfg( CONFIG_OF ) ]
508- unsafe { Node :: get_from_raw ( bindings:: of_root) }
510+ unsafe {
511+ Node :: get_from_raw ( bindings:: of_root)
512+ }
509513}
510514
511515/// Returns the /chosen node of the OF device tree (if any).
@@ -515,7 +519,9 @@ pub fn chosen() -> Option<Node> {
515519 None
516520 }
517521 #[ cfg( CONFIG_OF ) ]
518- unsafe { Node :: get_from_raw ( bindings:: of_chosen) }
522+ unsafe {
523+ Node :: get_from_raw ( bindings:: of_chosen)
524+ }
519525}
520526
521527/// Returns the /aliases node of the OF device tree (if any).
@@ -525,7 +531,9 @@ pub fn aliases() -> Option<Node> {
525531 None
526532 }
527533 #[ cfg( CONFIG_OF ) ]
528- unsafe { Node :: get_from_raw ( bindings:: of_aliases) }
534+ unsafe {
535+ Node :: get_from_raw ( bindings:: of_aliases)
536+ }
529537}
530538
531539/// Returns the system stdout node of the OF device tree (if any).
@@ -535,7 +543,9 @@ pub fn stdout() -> Option<Node> {
535543 None
536544 }
537545 #[ cfg( CONFIG_OF ) ]
538- unsafe { Node :: get_from_raw ( bindings:: of_stdout) }
546+ unsafe {
547+ Node :: get_from_raw ( bindings:: of_stdout)
548+ }
539549}
540550
541551#[ allow( unused_variables) ]
You can’t perform that action at this time.
0 commit comments