]> git.baikalelectronics.ru Git - kernel.git/commitdiff
Input: st-keyscan - add missing linux/input.h and linux/of.h includes
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 23 Sep 2022 19:47:35 +0000 (12:47 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 26 Sep 2022 15:14:29 +0000 (08:14 -0700)
We are going to clean up matrix_keymap.h from unnecessary includes,
so the driver needs to include API that it uses directly.

Also let's sort includes alphabetically.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220923194738.927408-2-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/st-keyscan.c

index a045d61165acc25e5efcaa7cac2307a64d787c1a..a62bb8fff88c6de18956d92748fa911fc0dfc038 100644 (file)
@@ -8,12 +8,14 @@
  * Based on sh_keysc.c, copyright 2008 Magnus Damm
  */
 
-#include <linux/module.h>
-#include <linux/interrupt.h>
-#include <linux/platform_device.h>
 #include <linux/clk.h>
-#include <linux/io.h>
+#include <linux/input.h>
 #include <linux/input/matrix_keypad.h>
+#include <linux/io.h>
+#include <linux/interrupt.h>
+#include <linux/module.h>
+#include <linux/of.h>
+#include <linux/platform_device.h>
 
 #define ST_KEYSCAN_MAXKEYS 16