Skip to contentSkip to conversation

input: keyboard: remove duplicated include from mtk-pmic-keys.c

PATCH Applied YueHaibing 2 participants 2 messages Dec 11, 2018 – Dec 21, 2018

Subsystems (3)
lore
Share & tools
lore

YueHaibing

author
#0 lore raw

PATCH v2 1/1 input: keyboard: remove duplicated include from mtk-pmic-keys.c

alphabetise the header files and remove duplicated include file linux/kernel.h

---
v2: alphabetise the header files

---
 drivers/input/keyboard/mtk-pmic-keys.c | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
drivers/input/keyboard/mtk-pmic-keys.c +6 -7
index 02c67a1..8e6ebab 100644
@@ -14,18 +14,17 @@
  *
  */
 
-#include <linux/module.h>
-#include <linux/kernel.h>
 #include <linux/input.h>
 #include <linux/interrupt.h>
-#include <linux/platform_device.h>
 #include <linux/kernel.h>
-#include <linux/of.h>
-#include <linux/of_device.h>
-#include <linux/regmap.h>
 #include <linux/mfd/mt6323/registers.h>
-#include <linux/mfd/mt6397/registers.h>
 #include <linux/mfd/mt6397/core.h>
+#include <linux/mfd/mt6397/registers.h>
+#include <linux/module.h>
+#include <linux/of_device.h>
+#include <linux/of.h>
+#include <linux/platform_device.h>
+#include <linux/regmap.h>
 
 #define MTK_PMIC_PWRKEY_RST_EN_MASK	0x1
 #define MTK_PMIC_PWRKEY_RST_EN_SHIFT	6
Signature · 1 line
2.7.4
maintainer Applied
#1 lore raw
Quoted 4 lines · YueHaibing

alphabetise the header files and remove duplicated include file linux/kernel.h

Applied, thank you.

Quoted 39 lines

---
v2: alphabetise the header files

---
 drivers/input/keyboard/mtk-pmic-keys.c | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
drivers/input/keyboard/mtk-pmic-keys.c +6 -7
index 02c67a1..8e6ebab 100644
@@ -14,18 +14,17 @@
  *
  */
 
-#include <linux/module.h>
-#include <linux/kernel.h>
 #include <linux/input.h>
 #include <linux/interrupt.h>
-#include <linux/platform_device.h>
 #include <linux/kernel.h>
-#include <linux/of.h>
-#include <linux/of_device.h>
-#include <linux/regmap.h>
 #include <linux/mfd/mt6323/registers.h>
-#include <linux/mfd/mt6397/registers.h>
 #include <linux/mfd/mt6397/core.h>
+#include <linux/mfd/mt6397/registers.h>
+#include <linux/module.h>
+#include <linux/of_device.h>
+#include <linux/of.h>
+#include <linux/platform_device.h>
+#include <linux/regmap.h>
 
 #define MTK_PMIC_PWRKEY_RST_EN_MASK	0x1
 #define MTK_PMIC_PWRKEY_RST_EN_SHIFT	6
Signature · 1 line
2.7.4
Signature · 1 line
Dmitry