diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2022-10-07 12:53:44 +0300 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2022-10-24 12:30:26 +0300 |
commit | 08a149c40bdbb9cd08fd0d39c6976d713a187300 (patch) | |
tree | f36f0fdd6166b42df2af922575c66cf5dc1459b6 /drivers/gpio/gpiolib-sysfs.h | |
parent | 52ee7c02f67808afa533c523fa3e4b66c54ea758 (diff) | |
download | lwn-08a149c40bdbb9cd08fd0d39c6976d713a187300.tar.gz lwn-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 'drivers/gpio/gpiolib-sysfs.h')
-rw-r--r-- | drivers/gpio/gpiolib-sysfs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpio/gpiolib-sysfs.h b/drivers/gpio/gpiolib-sysfs.h index ddd0e503f8eb..0f213bdb4732 100644 --- a/drivers/gpio/gpiolib-sysfs.h +++ b/drivers/gpio/gpiolib-sysfs.h @@ -5,6 +5,8 @@ #ifdef CONFIG_GPIO_SYSFS +struct gpio_device; + int gpiochip_sysfs_register(struct gpio_device *gdev); void gpiochip_sysfs_unregister(struct gpio_device *gdev); |