diff mbox series

[U-Boot,v5,08/10] fdtdec: sort include files

Message ID 1505227539-17560-9-git-send-email-jjhiblot@ti.com
State Superseded
Delegated to: Tom Rini
Headers show
Series spl: dm: Make it possible for the SPL to pick its own DTB from a FIT | expand

Commit Message

Jean-Jacques Hiblot Sept. 12, 2017, 2:45 p.m. UTC
Sort include files in accordance to U-Boot coding style.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
---
 lib/fdtdec.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Comments

Simon Glass Sept. 13, 2017, 4:26 a.m. UTC | #1
Hi Jean-Jacques,

On 12 September 2017 at 08:45, Jean-Jacques Hiblot <jjhiblot@ti.com> wrote:
> Sort include files in accordance to U-Boot coding style.
>
> Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
> ---
>  lib/fdtdec.c | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/lib/fdtdec.c b/lib/fdtdec.c
> index 630e040..ee398d1 100644
> --- a/lib/fdtdec.c
> +++ b/lib/fdtdec.c
> @@ -4,17 +4,17 @@
>   */
>
>  #ifndef USE_HOSTCC
> +#include <asm/sections.h>
>  #include <boot_fit.h>
>  #include <common.h>
>  #include <dm.h>
> +#include <dm/of_extra.h>
>  #include <errno.h>
> -#include <serial.h>
> -#include <libfdt.h>
> -#include <fdt_support.h>
>  #include <fdtdec.h>
> -#include <asm/sections.h>
> -#include <dm/of_extra.h>
> +#include <fdt_support.h>
> +#include <libfdt.h>
>  #include <linux/ctype.h>
> +#include <serial.h>

The asm and linux things come at the end. Please see:

https://www.denx.de/wiki/U-Boot/CodingStyle

>
>  DECLARE_GLOBAL_DATA_PTR;
>
> --
> 1.9.1
>

Regards,
Simon
diff mbox series

Patch

diff --git a/lib/fdtdec.c b/lib/fdtdec.c
index 630e040..ee398d1 100644
--- a/lib/fdtdec.c
+++ b/lib/fdtdec.c
@@ -4,17 +4,17 @@ 
  */
 
 #ifndef USE_HOSTCC
+#include <asm/sections.h>
 #include <boot_fit.h>
 #include <common.h>
 #include <dm.h>
+#include <dm/of_extra.h>
 #include <errno.h>
-#include <serial.h>
-#include <libfdt.h>
-#include <fdt_support.h>
 #include <fdtdec.h>
-#include <asm/sections.h>
-#include <dm/of_extra.h>
+#include <fdt_support.h>
+#include <libfdt.h>
 #include <linux/ctype.h>
+#include <serial.h>
 
 DECLARE_GLOBAL_DATA_PTR;