Browse Source

gpu: host1x: Sort includes alphabetically

Sorting includes alphabetically makes it easier and less conflict-prone
to add new includes subsequently.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Thierry Reding 8 years ago
parent
commit
7e7d432c5a
2 changed files with 12 additions and 11 deletions
  1. 9 8
      drivers/gpu/host1x/dev.c
  2. 3 3
      drivers/gpu/host1x/dev.h

+ 9 - 8
drivers/gpu/host1x/dev.c

@@ -16,24 +16,25 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
  */
 
 
-#include <linux/module.h>
-#include <linux/list.h>
-#include <linux/slab.h>
-#include <linux/of.h>
-#include <linux/of_device.h>
 #include <linux/clk.h>
 #include <linux/clk.h>
-#include <linux/io.h>
 #include <linux/dma-mapping.h>
 #include <linux/dma-mapping.h>
+#include <linux/io.h>
+#include <linux/list.h>
+#include <linux/module.h>
+#include <linux/of_device.h>
+#include <linux/of.h>
+#include <linux/slab.h>
 
 
 #define CREATE_TRACE_POINTS
 #define CREATE_TRACE_POINTS
 #include <trace/events/host1x.h>
 #include <trace/events/host1x.h>
 #undef CREATE_TRACE_POINTS
 #undef CREATE_TRACE_POINTS
 
 
 #include "bus.h"
 #include "bus.h"
-#include "dev.h"
-#include "intr.h"
 #include "channel.h"
 #include "channel.h"
 #include "debug.h"
 #include "debug.h"
+#include "dev.h"
+#include "intr.h"
+
 #include "hw/host1x01.h"
 #include "hw/host1x01.h"
 #include "hw/host1x02.h"
 #include "hw/host1x02.h"
 #include "hw/host1x04.h"
 #include "hw/host1x04.h"

+ 3 - 3
drivers/gpu/host1x/dev.h

@@ -17,16 +17,16 @@
 #ifndef HOST1X_DEV_H
 #ifndef HOST1X_DEV_H
 #define HOST1X_DEV_H
 #define HOST1X_DEV_H
 
 
-#include <linux/platform_device.h>
 #include <linux/device.h>
 #include <linux/device.h>
 #include <linux/iommu.h>
 #include <linux/iommu.h>
 #include <linux/iova.h>
 #include <linux/iova.h>
+#include <linux/platform_device.h>
 
 
+#include "cdma.h"
 #include "channel.h"
 #include "channel.h"
-#include "syncpt.h"
 #include "intr.h"
 #include "intr.h"
-#include "cdma.h"
 #include "job.h"
 #include "job.h"
+#include "syncpt.h"
 
 
 struct host1x_syncpt;
 struct host1x_syncpt;
 struct host1x_syncpt_base;
 struct host1x_syncpt_base;