Skip to content

Commit c9a9972

Browse files
GnurouLinus Walleij
authored andcommitted
gpiolib: add missing declarations
Add declaration of 'struct of_phandle_args' to avoid the following warning: In file included from arch/arm/mach-tegra/board-paz00.c:21:0: include/linux/gpio/driver.h:102:17: warning: 'struct of_phandle_args' declared inside parameter list include/linux/gpio/driver.h:102:17: warning: its scope is only this definition or declaration, which is probably not what you want Also proactively add other definitions/includes that could be missing in other contexts. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Reported-by: Stephen Warren <swarren@wwwdotorg.org> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent dc1ccc4 commit c9a9972

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎include/linux/gpio/driver.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
#define __LINUX_GPIO_DRIVER_H
33

44
#include <linux/types.h>
5+
#include <linux/module.h>
56

67
struct device;
78
struct gpio_desc;
9+
struct of_phandle_args;
10+
struct device_node;
811
struct seq_file;
912

1013
/**

0 commit comments

Comments
 (0)