Skip to content

Commit 923d011

Browse files
tititiou36Bartosz Golaszewski
authored andcommitted
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 <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 7963ba0 commit 923d011

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/of_gpio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ enum of_gpio_flags {
3434

3535
#ifdef CONFIG_OF_GPIO
3636

37-
#include <linux/kernel.h>
37+
#include <linux/container_of.h>
3838

3939
/*
4040
* OF GPIO chip for memory mapped banks

0 commit comments

Comments
 (0)