diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-10-03 15:10:11 +0300 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-10-03 16:29:30 +0300 |
commit | 82cc14c9930c7613da2fcb41a8d4f90c8b4cb048 (patch) | |
tree | 4f5b29443f4ea0fd9ac363bbe4b47639b13e0d5e /drivers/pinctrl | |
parent | 3cd39bc3b11b8d34b7d7c961a35fdfd18b0ebf75 (diff) |
pinctrl: Replace kernel.h by what is actually being used
The kernel.h is a mess of unrelated things and we only used it
as a proxy to array_size.h, hence switch from former to the latter.
While at it, group and sort the headers where it makes sense.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r-- | drivers/pinctrl/core.c | 2 | ||||
-rw-r--r-- | drivers/pinctrl/pinconf-generic.c | 16 | ||||
-rw-r--r-- | drivers/pinctrl/pinconf.c | 14 | ||||
-rw-r--r-- | drivers/pinctrl/pinctrl-utils.c | 6 | ||||
-rw-r--r-- | drivers/pinctrl/pinmux.c | 2 |
5 files changed, 23 insertions, 17 deletions
diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c index e9dc9638120a..afd0a1040329 100644 --- a/drivers/pinctrl/core.c +++ b/drivers/pinctrl/core.c @@ -12,12 +12,12 @@ */ #define pr_fmt(fmt) "pinctrl core: " fmt +#include <linux/array_size.h> #include <linux/debugfs.h> #include <linux/device.h> #include <linux/err.h> #include <linux/export.h> #include <linux/init.h> -#include <linux/kernel.h> #include <linux/kref.h> #include <linux/list.h> #include <linux/seq_file.h> diff --git a/drivers/pinctrl/pinconf-generic.c b/drivers/pinctrl/pinconf-generic.c index 365c4b0ca465..8313cb5f3b3c 100644 --- a/drivers/pinctrl/pinconf-generic.c +++ b/drivers/pinctrl/pinconf-generic.c @@ -10,17 +10,19 @@ #define pr_fmt(fmt) "generic pinconfig core: " fmt -#include <linux/kernel.h> -#include <linux/module.h> -#include <linux/init.h> +#include <linux/array_size.h> +#include <linux/debugfs.h> #include <linux/device.h> +#include <linux/init.h> +#include <linux/module.h> +#include <linux/of.h> #include <linux/slab.h> -#include <linux/debugfs.h> #include <linux/seq_file.h> -#include <linux/pinctrl/pinctrl.h> -#include <linux/pinctrl/pinconf.h> + #include <linux/pinctrl/pinconf-generic.h> -#include <linux/of.h> +#include <linux/pinctrl/pinconf.h> +#include <linux/pinctrl/pinctrl.h> + #include "core.h" #include "pinconf.h" #include "pinctrl-utils.h" diff --git a/drivers/pinctrl/pinconf.c b/drivers/pinctrl/pinconf.c index d9d54065472e..96d853a8f339 100644 --- a/drivers/pinctrl/pinconf.c +++ b/drivers/pinctrl/pinconf.c @@ -9,16 +9,18 @@ */ #define pr_fmt(fmt) "pinconfig core: " fmt -#include <linux/kernel.h> -#include <linux/module.h> -#include <linux/init.h> -#include <linux/device.h> -#include <linux/slab.h> +#include <linux/array_size.h> #include <linux/debugfs.h> +#include <linux/device.h> +#include <linux/init.h> +#include <linux/module.h> #include <linux/seq_file.h> +#include <linux/slab.h> + #include <linux/pinctrl/machine.h> -#include <linux/pinctrl/pinctrl.h> #include <linux/pinctrl/pinconf.h> +#include <linux/pinctrl/pinctrl.h> + #include "core.h" #include "pinconf.h" diff --git a/drivers/pinctrl/pinctrl-utils.c b/drivers/pinctrl/pinctrl-utils.c index 3580e0fd94ed..40862f7bd6ca 100644 --- a/drivers/pinctrl/pinctrl-utils.c +++ b/drivers/pinctrl/pinctrl-utils.c @@ -6,12 +6,14 @@ * * Author: Laxman Dewangan <ldewangan@nvidia.com> */ +#include <linux/array_size.h> #include <linux/device.h> #include <linux/export.h> -#include <linux/kernel.h> -#include <linux/pinctrl/pinctrl.h> #include <linux/of.h> #include <linux/slab.h> + +#include <linux/pinctrl/pinctrl.h> + #include "core.h" #include "pinctrl-utils.h" diff --git a/drivers/pinctrl/pinmux.c b/drivers/pinctrl/pinmux.c index 2a180a5d64a4..3de81d310aee 100644 --- a/drivers/pinctrl/pinmux.c +++ b/drivers/pinctrl/pinmux.c @@ -12,12 +12,12 @@ */ #define pr_fmt(fmt) "pinmux core: " fmt +#include <linux/array_size.h> #include <linux/ctype.h> #include <linux/debugfs.h> #include <linux/device.h> #include <linux/err.h> #include <linux/init.h> -#include <linux/kernel.h> #include <linux/list.h> #include <linux/module.h> #include <linux/radix-tree.h> |