summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/pinctrl-utils.h
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2022-10-07 11:53:44 +0200
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2022-10-24 16:06:48 +0200
commite5530adc17a79f2a93e8b35e0ce673fc33f5f663 (patch)
tree7be27c5648559be91fc449b3d9cd55a39e39912e /drivers/pinctrl/pinctrl-utils.h
parentpinctrl: intel: Add missing header(s) (diff)
downloadlinux-e5530adc17a79f2a93e8b35e0ce673fc33f5f663.tar.xz
linux-e5530adc17a79f2a93e8b35e0ce673fc33f5f663.zip
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 'drivers/pinctrl/pinctrl-utils.h')
-rw-r--r--drivers/pinctrl/pinctrl-utils.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/pinctrl/pinctrl-utils.h b/drivers/pinctrl/pinctrl-utils.h
index cec407a8cc4e..4108ee2dd6d0 100644
--- a/drivers/pinctrl/pinctrl-utils.h
+++ b/drivers/pinctrl/pinctrl-utils.h
@@ -9,6 +9,11 @@
#ifndef __PINCTRL_UTILS_H__
#define __PINCTRL_UTILS_H__
+#include <linux/pinctrl/machine.h>
+
+struct pinctrl_dev;
+struct pinctrl_map;
+
int pinctrl_utils_reserve_map(struct pinctrl_dev *pctldev,
struct pinctrl_map **map, unsigned *reserved_maps,
unsigned *num_maps, unsigned reserve);