gpio: Do not include <linux/kernel.h> when not really needed.
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 27 Nov 2022 21:52:10 +0000 (22:52 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 28 Nov 2022 17:57:50 +0000 (18:57 +0100)
commit923d011febb4e2fb338036bb0ee6a0a7f9b10da1
tree1a123702ffcffd9243a12b84b2978576acced4e4
parent7963ba02b2d1de681ba1ee33060db42eb4cf4c07
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>
include/linux/of_gpio.h