Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+26 -4
+12
drivers/gpio/gpiolib-acpi.h
··· 8 8 #ifndef GPIOLIB_ACPI_H 9 9 #define GPIOLIB_ACPI_H 10 10 11 + #include <linux/err.h> 12 + #include <linux/errno.h> 13 + #include <linux/types.h> 14 + 15 + #include <linux/gpio/consumer.h> 16 + 11 17 struct acpi_device; 18 + struct device; 19 + struct fwnode_handle; 20 + 21 + struct gpio_chip; 22 + struct gpio_desc; 23 + struct gpio_device; 12 24 13 25 /** 14 26 * struct acpi_gpio_info - ACPI GPIO specific information
+10 -1
drivers/gpio/gpiolib-of.h
··· 3 3 #ifndef GPIOLIB_OF_H 4 4 #define GPIOLIB_OF_H 5 5 6 + #include <linux/err.h> 7 + #include <linux/errno.h> 8 + #include <linux/types.h> 9 + 10 + #include <linux/notifier.h> 11 + 12 + struct device; 13 + 6 14 struct gpio_chip; 7 - enum of_gpio_flags; 15 + struct gpio_desc; 16 + struct gpio_device; 8 17 9 18 #ifdef CONFIG_OF_GPIO 10 19 struct gpio_desc *of_find_gpio(struct device *dev,
+2
drivers/gpio/gpiolib-sysfs.h
··· 5 5 6 6 #ifdef CONFIG_GPIO_SYSFS 7 7 8 + struct gpio_device; 9 + 8 10 int gpiochip_sysfs_register(struct gpio_device *gdev); 9 11 void gpiochip_sysfs_unregister(struct gpio_device *gdev); 10 12
+1 -1
include/linux/gpio.h
··· 98 98 99 99 #else /* ! CONFIG_GPIOLIB */ 100 100 101 + #include <linux/bug.h> 101 102 #include <linux/kernel.h> 102 103 #include <linux/types.h> 103 - #include <linux/bug.h> 104 104 105 105 struct device; 106 106 struct gpio_chip;
+1 -1
include/linux/gpio/driver.h
··· 7 7 #include <linux/irqchip/chained_irq.h> 8 8 #include <linux/irqdomain.h> 9 9 #include <linux/lockdep.h> 10 - #include <linux/pinctrl/pinctrl.h> 11 10 #include <linux/pinctrl/pinconf-generic.h> 11 + #include <linux/pinctrl/pinctrl.h> 12 12 #include <linux/property.h> 13 13 #include <linux/types.h> 14 14
-1
include/linux/gpio/machine.h
··· 3 3 #define __LINUX_GPIO_MACHINE_H 4 4 5 5 #include <linux/types.h> 6 - #include <linux/list.h> 7 6 8 7 enum gpio_lookup_flags { 9 8 GPIO_ACTIVE_HIGH = (0 << 0),