android_kernel_motorola_sm6225/include/linux/pinctrl
Linus Walleij 0d74d4a161 pinctrl: add includes and ifdefs for non-DT builds
Commit e81c8f18af
"pinctrl: pinconf-generic: add generic APIs for mapping pinctrl node"
Added function prototypes with implicit dependencies
on other header files causing build warnings like this:

In file included from
arch/arm/mach-ux500/board-mop500-pins.c:12:0:
include/linux/pinctrl/pinconf-generic.h:142:3:
warning: 'struct device_node' declared inside parameter list [enabled
by default]
   unsigned *reserved_maps, unsigned *num_maps);
   ^
include/linux/pinctrl/pinconf-generic.h:142:3:
warning: its scope is only this definition or declaration, which is
probably not what you want [enabled by default]
include/linux/pinctrl/pinconf-generic.h:142:3:
warning: 'struct pinctrl_dev' declared inside parameter list [enabled
by default]
include/linux/pinctrl/pinconf-generic.h:145:3:
warning: 'struct device_node' declared inside parameter list [enabled
by default]
   unsigned *num_maps);
   ^
Let's just add ifdefs for non-DT systems (the actual code is
already ifdefed) and #include <linux/device.h> to get the
most important structs and forward-declare the pinctrl
core structs.

Reported-by: Olof Johansson <olof@lixom.net>
Cc: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2013-08-15 22:12:46 +02:00
..
consumer.h pinctrl: rip out the direct pinconf API 2013-06-25 12:54:56 +02:00
devinfo.h drivers: pinctrl sleep and idle states in the core 2013-06-16 11:56:52 +02:00
machine.h UAPI: (Scripted) Convert #include "..." to #include <path/...> in kernel system headers 2012-10-02 18:01:25 +01:00
pinconf-generic.h pinctrl: add includes and ifdefs for non-DT builds 2013-08-15 22:12:46 +02:00
pinconf.h pinctrl: fix pinconf_ops::pin_config_dbg_parse_modify kerneldoc 2013-06-18 17:23:36 +02:00
pinctrl-state.h pinctrl: clarify idle vs sleep states 2012-10-01 08:04:52 +02:00
pinctrl.h Fix comment on pinctrl_gpio_range.pin_base 2013-06-17 18:18:29 +02:00
pinmux.h UAPI: (Scripted) Convert #include "..." to #include <path/...> in kernel system headers 2012-10-02 18:01:25 +01:00