led: gpio: Sort include headers alphabetically
authorXiubo Li <Li.Xiubo@freescale.com>
Sun, 28 Sep 2014 08:57:14 +0000 (01:57 -0700)
committerBryan Wu <cooloney@gmail.com>
Mon, 29 Sep 2014 17:18:28 +0000 (10:18 -0700)
If the inlcude headers aren't sorted alphabetically, then the
logical choice is to append new ones, however that creates a
lot of potential for conflicts or duplicates because every change
will then add new includes in the same location.

Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/leds-gpio-register.c
drivers/leds/leds-gpio.c

index 1c4ed5510f356a1be0ae7782d8600198b91e6e78..fbd89344bec45cb5280ca1245f333639c1608e4e 100644 (file)
@@ -7,9 +7,9 @@
  * Free Software Foundation.
  */
 #include <linux/err.h>
+#include <linux/leds.h>
 #include <linux/platform_device.h>
 #include <linux/slab.h>
-#include <linux/leds.h>
 
 /**
  * gpio_led_register_device - register a gpio-led device
index 57ff20fecf57e16e9963db1692206b923593258f..1b1e6176982dc216d6730284a164d1e43edd82af 100644 (file)
  * published by the Free Software Foundation.
  *
  */
-#include <linux/kernel.h>
-#include <linux/platform_device.h>
+#include <linux/err.h>
 #include <linux/gpio.h>
+#include <linux/kernel.h>
 #include <linux/leds.h>
+#include <linux/module.h>
 #include <linux/of.h>
-#include <linux/of_platform.h>
 #include <linux/of_gpio.h>
+#include <linux/of_platform.h>
+#include <linux/platform_device.h>
 #include <linux/slab.h>
 #include <linux/workqueue.h>
-#include <linux/module.h>
-#include <linux/err.h>
 
 struct gpio_led_data {
        struct led_classdev cdev;