Skip to contentSkip to conversation

pinctrl: Declare struct device

PATCH Applied Stephen Warren 2 participants 2 messages Mar 6, 2012 Pin control

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pinctrl: Declare struct device

From: Stephen Warren <[email protected]>

Add a dummy declaration of struct device to avoid the following warning:

In file included from include/linux/pinctrl/machine.h:15:0,
from arch/arm/mach-tegra/board-pinmux.h:18,
from arch/arm/mach-tegra/board-trimslice-pinmux.c:20:
include/linux/pinctrl/pinctrl.h:115:12: warning: 'struct device' declared inside parameter list [enabled by default] include/linux/pinctrl/pinctrl.h:115:12: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]

---
 include/linux/pinctrl/pinctrl.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
include/linux/pinctrl/pinctrl.h +1 -0
index bbdd7e1..de63e16 100644
@@ -20,6 +20,7 @@
 
 #define PINCTRL_STATE_DEFAULT "default"
 
+struct device;
 struct pinctrl_dev;
 struct pinmux_ops;
 struct pinconf_ops;
Signature · 1 line
1.7.0.4
#1 lore raw
Quoted 3 lines · Stephen Warren

From: Stephen Warren <[email protected]>

Add a dummy declaration of struct device to avoid the following warning:

Applied, thanks!
Linus Walleij