* [PATCH] Pinctrl header: trivial: declare struct device
@ 2012-08-10 14:52 Richard Genoud
2012-08-13 14:00 ` Linus Walleij
0 siblings, 1 reply; 2+ messages in thread
From: Richard Genoud @ 2012-08-10 14:52 UTC (permalink / raw)
To: Jiri Kosina; +Cc: Linus Walleij, linux-kernel, Richard Genoud
As struct device is used as a function argument, it should at least be
declared (device.h is not included).
Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
---
include/linux/pinctrl/consumer.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/include/linux/pinctrl/consumer.h b/include/linux/pinctrl/consumer.h
index 6dd96fb..e9b7f43 100644
--- a/include/linux/pinctrl/consumer.h
+++ b/include/linux/pinctrl/consumer.h
@@ -20,6 +20,7 @@
/* This struct is private to the core and should be regarded as a cookie */
struct pinctrl;
struct pinctrl_state;
+struct device;
#ifdef CONFIG_PINCTRL
--
1.7.2.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Pinctrl header: trivial: declare struct device
2012-08-10 14:52 [PATCH] Pinctrl header: trivial: declare struct device Richard Genoud
@ 2012-08-13 14:00 ` Linus Walleij
0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2012-08-13 14:00 UTC (permalink / raw)
To: Richard Genoud; +Cc: Jiri Kosina, linux-kernel
On Fri, Aug 10, 2012 at 4:52 PM, Richard Genoud
<richard.genoud@gmail.com> wrote:
> As struct device is used as a function argument, it should at least be
> declared (device.h is not included).
>
> Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
Applied.
Thanks,
Linus Walleij
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-08-13 14:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-10 14:52 [PATCH] Pinctrl header: trivial: declare struct device Richard Genoud
2012-08-13 14:00 ` 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®