Commit c9a9972b authored by Alexandre Courbot's avatar Alexandre Courbot Committed by Linus Walleij

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: default avatarAlexandre Courbot <acourbot@nvidia.com>
Reported-by: default avatarStephen Warren <swarren@wwwdotorg.org>
Reviewed-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent dc1ccc48
...@@ -2,9 +2,12 @@ ...@@ -2,9 +2,12 @@
#define __LINUX_GPIO_DRIVER_H #define __LINUX_GPIO_DRIVER_H
#include <linux/types.h> #include <linux/types.h>
#include <linux/module.h>
struct device; struct device;
struct gpio_desc; struct gpio_desc;
struct of_phandle_args;
struct device_node;
struct seq_file; struct seq_file;
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment