gpiolib: add missing declarations
authorAlexandre Courbot <acourbot@nvidia.com>
Mon, 25 Nov 2013 09:34:24 +0000 (18:34 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 3 Dec 2013 12:10:47 +0000 (13:10 +0100)
commitc9a9972b6f093e4e2f81f58892a7523df894144d
treee6e954167d55ec349c32f5da183c6072e948c63d
parentdc1ccc48159d63eca5089e507c82c7d22ef60839
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>
include/linux/gpio/driver.h