* [PATCH] pinctrl: Declare struct device
@ 2012-03-06 19:12 Stephen Warren
2012-03-06 22:31 ` Linus Walleij
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Warren @ 2012-03-06 19:12 UTC (permalink / raw)
To: Linus Walleij; +Cc: linux-kernel, Stephen Warren
From: Stephen Warren <swarren@wwwdotorg.org>
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]
Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
---
include/linux/pinctrl/pinctrl.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/include/linux/pinctrl/pinctrl.h b/include/linux/pinctrl/pinctrl.h
index bbdd7e1..de63e16 100644
--- a/include/linux/pinctrl/pinctrl.h
+++ b/include/linux/pinctrl/pinctrl.h
@@ -20,6 +20,7 @@
#define PINCTRL_STATE_DEFAULT "default"
+struct device;
struct pinctrl_dev;
struct pinmux_ops;
struct pinconf_ops;
--
1.7.0.4
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-03-06 22:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-06 19:12 [PATCH] pinctrl: Declare struct device Stephen Warren
2012-03-06 22:31 ` Linus Walleij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®