Skip to content

Commit

Permalink
led: gpio: Sort include headers alphabetically
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Xiubo Li authored and Bryan Wu committed Sep 29, 2014
1 parent 0a2b4a8 commit 4cc7234
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion drivers/leds/leds-gpio-register.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions drivers/leds/leds-gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@
* 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;
Expand Down

0 comments on commit 4cc7234

Please sign in to comment.