of: overlay: reorder fields in struct fragment
authorFrank Rowand <frank.rowand@sony.com>
Fri, 5 Oct 2018 03:30:40 +0000 (20:30 -0700)
committerFrank Rowand <frank.rowand@sony.com>
Fri, 9 Nov 2018 06:11:23 +0000 (22:11 -0800)
Order the fields of struct fragment in the same order as
struct of_overlay_notify_data.  The order in struct fragment is
not significant.  If both structs are ordered the same then when
examining the data in a debugger or dump the human involved does
not have to remember which context they are examining.

Tested-by: Alan Tull <atull@kernel.org>
Signed-off-by: Frank Rowand <frank.rowand@sony.com>
drivers/of/overlay.c

index 9808aae..15be3da 100644 (file)
@@ -49,8 +49,8 @@ struct target {
  * @overlay:   pointer to the __overlay__ node
  */
 struct fragment {
-       struct device_node *target;
        struct device_node *overlay;
+       struct device_node *target;
 };
 
 /**