diff options
| author | Andy Shevchenko <[email protected]> | 2022-10-07 09:53:44 +0000 |
|---|---|---|
| committer | Andy Shevchenko <[email protected]> | 2022-10-24 09:30:26 +0000 |
| commit | 08a149c40bdbb9cd08fd0d39c6976d713a187300 (patch) | |
| tree | f36f0fdd6166b42df2af922575c66cf5dc1459b6 /drivers/gpio/gpiolib-of.h | |
| parent | gpiolib: cdev: Add missing header(s) (diff) | |
| download | kernel-08a149c40bdbb9cd08fd0d39c6976d713a187300.tar.gz kernel-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 <[email protected]>
Diffstat (limited to 'drivers/gpio/gpiolib-of.h')
| -rw-r--r-- | drivers/gpio/gpiolib-of.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib-of.h b/drivers/gpio/gpiolib-of.h index 8af2bc899aab..1b5df39a952e 100644 --- a/drivers/gpio/gpiolib-of.h +++ b/drivers/gpio/gpiolib-of.h @@ -3,8 +3,17 @@ #ifndef GPIOLIB_OF_H #define GPIOLIB_OF_H +#include <linux/err.h> +#include <linux/errno.h> +#include <linux/types.h> + +#include <linux/notifier.h> + +struct device; + struct gpio_chip; -enum of_gpio_flags; +struct gpio_desc; +struct gpio_device; #ifdef CONFIG_OF_GPIO struct gpio_desc *of_find_gpio(struct device *dev, |
