aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/gpio.h
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2022-10-07 12:53:44 +0300
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2022-10-24 12:30:26 +0300
commit08a149c40bdbb9cd08fd0d39c6976d713a187300 (patch)
treef36f0fdd6166b42df2af922575c66cf5dc1459b6 /include/linux/gpio.h
parentgpiolib: cdev: Add missing header(s) (diff)
downloadwireguard-linux-08a149c40bdbb9cd08fd0d39c6976d713a187300.tar.xz
wireguard-linux-08a149c40bdbb9cd08fd0d39c6976d713a187300.zip
gpiolib: Clean up headers
There is a few things done: - include only the headers we are direct user of - when pointer is in use, provide a forward declaration - add missing headers - group generic headers and subsystem headers - sort each group alphabetically While at it, fix some awkward indentations. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'include/linux/gpio.h')
-rw-r--r--include/linux/gpio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/gpio.h b/include/linux/gpio.h
index a370387fa406..346f60bbab30 100644
--- a/include/linux/gpio.h
+++ b/include/linux/gpio.h
@@ -98,9 +98,9 @@ int devm_gpio_request_one(struct device *dev, unsigned gpio,
#else /* ! CONFIG_GPIOLIB */
+#include <linux/bug.h>
#include <linux/kernel.h>
#include <linux/types.h>
-#include <linux/bug.h>
struct device;
struct gpio_chip;