gpio: aspeed: Add missing header(s)
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 7 Oct 2022 13:44:44 +0000 (16:44 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 19 Oct 2022 14:03:55 +0000 (17:03 +0300)
Do not imply that some of the generic headers may be always included.
Instead, include explicitly what we are direct user of.

While at it, sort headers alphabetically.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/gpio/gpio-aspeed.c
include/linux/gpio/aspeed.h

index 318a7d95a1a8b1b2563b5c1d6b4efa58032fe0aa..a94da80d3a95a2640af68c6b2a270701e9d0613d 100644 (file)
@@ -5,10 +5,9 @@
  * Joel Stanley <joel@jms.id.au>
  */
 
-#include <asm/div64.h>
 #include <linux/clk.h>
-#include <linux/gpio/driver.h>
 #include <linux/gpio/aspeed.h>
+#include <linux/gpio/driver.h>
 #include <linux/hashtable.h>
 #include <linux/init.h>
 #include <linux/io.h>
@@ -19,6 +18,8 @@
 #include <linux/spinlock.h>
 #include <linux/string.h>
 
+#include <asm/div64.h>
+
 /*
  * These two headers aren't meant to be used by GPIO drivers. We need
  * them in order to access gpio_chip_hwgpio() which we need to implement
index 1bfb3cdc86d050ae087404c8f39b1ffa24fa1368..9a547e66c8c45c9de765c05e6e89b4ed800ae6b6 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef __GPIO_ASPEED_H
 #define __GPIO_ASPEED_H
 
+#include <linux/types.h>
+
+struct gpio_desc;
+
 struct aspeed_gpio_copro_ops {
        int (*request_access)(void *data);
        int (*release_access)(void *data);