]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk: cosmetic: reorder include files
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Fri, 19 Nov 2021 14:12:06 +0000 (15:12 +0100)
committerSean Anderson <seanga2@gmail.com>
Wed, 15 Dec 2021 17:16:16 +0000 (12:16 -0500)
Reorder include files in the U-Boot expected order:

the common.h header should always be first,
followed by other headers in order,
then headers with directories,
then local files.

It is a preliminary step for next patch.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
drivers/clk/clk-composite.c
drivers/clk/clk-fixed-factor.c
drivers/clk/clk-gate.c
drivers/clk/clk-mux.c
drivers/clk/clk-uclass.c
drivers/clk/clk.c

index bb5351ebc0bd5f51bfa5f5054c954806b9678742..12288e10b39c4ea5162078fd9730a9de7cb7e349 100644 (file)
@@ -5,13 +5,13 @@
  */
 
 #include <common.h>
-#include <asm/io.h>
-#include <malloc.h>
+#include <clk.h>
 #include <clk-uclass.h>
+#include <malloc.h>
+#include <asm/io.h>
 #include <dm/device.h>
 #include <dm/devres.h>
 #include <linux/clk-provider.h>
-#include <clk.h>
 #include <linux/err.h>
 
 #include "clk.h"
index 8d9823bdab9328c10dedfc932e2a35f30e3e7e55..9fcf30fd2e48b0265a5ff651f5e2da4e77673474 100644 (file)
@@ -6,16 +6,17 @@
  * Copyright (C) 2011 Sascha Hauer, Pengutronix <s.hauer@pengutronix.de>
  */
 #include <common.h>
-#include <malloc.h>
+#include <clk.h>
 #include <clk-uclass.h>
+#include <div64.h>
+#include <malloc.h>
 #include <dm/device.h>
 #include <dm/devres.h>
 #include <linux/clk-provider.h>
-#include <div64.h>
-#include <clk.h>
-#include "clk.h"
 #include <linux/err.h>
 
+#include "clk.h"
+
 #define UBOOT_DM_CLK_IMX_FIXED_FACTOR "ccf_clk_fixed_factor"
 
 static ulong clk_factor_recalc_rate(struct clk *clk)
index 006d3b6629c0bb3c73689eec2aff2b7810711386..708499d95aeab061010801802d7c139f91646b20 100644 (file)
@@ -8,17 +8,18 @@
  */
 
 #include <common.h>
-#include <asm/io.h>
-#include <malloc.h>
+#include <clk.h>
 #include <clk-uclass.h>
+#include <malloc.h>
+#include <asm/io.h>
 #include <dm/device.h>
 #include <dm/devres.h>
 #include <linux/bitops.h>
 #include <linux/clk-provider.h>
-#include <clk.h>
-#include "clk.h"
 #include <linux/err.h>
 
+#include "clk.h"
+
 #define UBOOT_DM_CLK_GATE "clk_gate"
 
 /**
index f1becd20d8bf8f75cf83f6c4bd31ecb5869449b0..fd746f2de37e489110b2b741cd7db59b4c46cac4 100644 (file)
 #include <common.h>
 #include <clk.h>
 #include <clk-uclass.h>
+#include <malloc.h>
+#include <asm/io.h>
 #include <dm/device.h>
 #include <dm/devres.h>
 #include <dm/uclass.h>
 #include <linux/bitops.h>
-#include <malloc.h>
-#include <asm/io.h>
 #include <linux/clk-provider.h>
 #include <linux/err.h>
+
 #include "clk.h"
 
 #define UBOOT_DM_CLK_CCF_MUX "ccf_clk_mux"
index 493018b33eb6ae583ec19bb7ba4462d4935fa11f..f2d264275431db04c33417779fefbc7c82384ea9 100644 (file)
@@ -16,6 +16,7 @@
 #include <errno.h>
 #include <log.h>
 #include <malloc.h>
+#include <asm/global_data.h>
 #include <dm/device_compat.h>
 #include <dm/device-internal.h>
 #include <dm/devres.h>
@@ -23,7 +24,6 @@
 #include <linux/bug.h>
 #include <linux/clk-provider.h>
 #include <linux/err.h>
-#include <asm/global_data.h>
 
 static inline const struct clk_ops *clk_dev_ops(struct udevice *dev)
 {
index 1efb7fe9f3e305c7114e77709a2515e9ba1dcc81..d1a9787071e53c24817a1cd457e004794cdce7d8 100644 (file)
@@ -5,13 +5,13 @@
  */
 
 #include <common.h>
+#include <clk.h>
 #include <clk-uclass.h>
 #include <log.h>
 #include <dm/device.h>
 #include <dm/uclass.h>
 #include <dm/lists.h>
 #include <dm/device-internal.h>
-#include <clk.h>
 
 int clk_register(struct clk *clk, const char *drv_name,
                 const char *name, const char *parent_name)