summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpiolib-swnode.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2023-02-08 18:07:28 +0100
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2023-03-06 11:33:02 +0100
commit380c7ba3923c6e471aff0f951a6cf42e8dec2c79 (patch)
tree32daa149c3a99fe642d1819568794018395da42e /drivers/gpio/gpiolib-swnode.c
parentgpiolib: Group forward declarations in consumer.h (diff)
downloadlinux-380c7ba3923c6e471aff0f951a6cf42e8dec2c79.tar.xz
linux-380c7ba3923c6e471aff0f951a6cf42e8dec2c79.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 Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/gpio/gpiolib-swnode.c')
-rw-r--r--drivers/gpio/gpiolib-swnode.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpio/gpiolib-swnode.c b/drivers/gpio/gpiolib-swnode.c
index dd9ccac214d1..b5a6eaf3729b 100644
--- a/drivers/gpio/gpiolib-swnode.c
+++ b/drivers/gpio/gpiolib-swnode.c
@@ -6,13 +6,14 @@
*/
#include <linux/err.h>
#include <linux/errno.h>
-#include <linux/gpio/consumer.h>
-#include <linux/gpio/driver.h>
#include <linux/kernel.h>
#include <linux/printk.h>
#include <linux/property.h>
#include <linux/string.h>
+#include <linux/gpio/consumer.h>
+#include <linux/gpio/driver.h>
+
#include "gpiolib.h"
#include "gpiolib-swnode.h"