Skip to content

Commit 4cc7234

Browse files
Xiubo Licooloney
authored andcommitted
led: gpio: Sort include headers alphabetically
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>
1 parent 0a2b4a8 commit 4cc7234

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎drivers/leds/leds-gpio-register.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
* Free Software Foundation.
88
*/
99
#include <linux/err.h>
10+
#include <linux/leds.h>
1011
#include <linux/platform_device.h>
1112
#include <linux/slab.h>
12-
#include <linux/leds.h>
1313

1414
/**
1515
* gpio_led_register_device - register a gpio-led device

‎drivers/leds/leds-gpio.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@
1010
* published by the Free Software Foundation.
1111
*
1212
*/
13-
#include <linux/kernel.h>
14-
#include <linux/platform_device.h>
13+
#include <linux/err.h>
1514
#include <linux/gpio.h>
15+
#include <linux/kernel.h>
1616
#include <linux/leds.h>
17+
#include <linux/module.h>
1718
#include <linux/of.h>
18-
#include <linux/of_platform.h>
1919
#include <linux/of_gpio.h>
20+
#include <linux/of_platform.h>
21+
#include <linux/platform_device.h>
2022
#include <linux/slab.h>
2123
#include <linux/workqueue.h>
22-
#include <linux/module.h>
23-
#include <linux/err.h>
2424

2525
struct gpio_led_data {
2626
struct led_classdev cdev;

0 commit comments

Comments
 (0)