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 17:06:48 +0300 |
| commit | e5530adc17a79f2a93e8b35e0ce673fc33f5f663 (patch) | |
| tree | 7be27c5648559be91fc449b3d9cd55a39e39912e /include/linux/pinctrl/devinfo.h | |
| parent | de23ccb1edc84f0f59f09b157b082110fb40789c (diff) | |
pinctrl: 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/pinctrl/devinfo.h')
| -rw-r--r-- | include/linux/pinctrl/devinfo.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/pinctrl/devinfo.h b/include/linux/pinctrl/devinfo.h index a48ff69acddd..9e8b559e1253 100644 --- a/include/linux/pinctrl/devinfo.h +++ b/include/linux/pinctrl/devinfo.h @@ -14,11 +14,15 @@ #ifndef PINCTRL_DEVINFO_H #define PINCTRL_DEVINFO_H +struct device; + #ifdef CONFIG_PINCTRL /* The device core acts as a consumer toward pinctrl */ #include <linux/pinctrl/consumer.h> +struct pinctrl; + /** * struct dev_pin_info - pin state container for devices * @p: pinctrl handle for the containing device @@ -42,8 +46,6 @@ extern int pinctrl_init_done(struct device *dev); #else -struct device; - /* Stubs if we're not using pinctrl */ static inline int pinctrl_bind_pins(struct device *dev) |
