diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2022-11-27 22:52:10 +0100 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2022-11-28 18:57:50 +0100 |
commit | 923d011febb4e2fb338036bb0ee6a0a7f9b10da1 (patch) | |
tree | 1a123702ffcffd9243a12b84b2978576acced4e4 /include/linux/of_gpio.h | |
parent | 7963ba02b2d1de681ba1ee33060db42eb4cf4c07 (diff) | |
download | lwn-923d011febb4e2fb338036bb0ee6a0a7f9b10da1.tar.gz lwn-923d011febb4e2fb338036bb0ee6a0a7f9b10da1.zip |
gpio: Do not include <linux/kernel.h> when not really needed.
<linux/kernel.h> is included only for using container_of().
Include <linux/container_of.h> instead, it is much lighter.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'include/linux/of_gpio.h')
-rw-r--r-- | include/linux/of_gpio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/of_gpio.h b/include/linux/of_gpio.h index a5166eb93437..6db627257a7b 100644 --- a/include/linux/of_gpio.h +++ b/include/linux/of_gpio.h @@ -34,7 +34,7 @@ enum of_gpio_flags { #ifdef CONFIG_OF_GPIO -#include <linux/kernel.h> +#include <linux/container_of.h> /* * OF GPIO chip for memory mapped banks |