linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pca953x: Minor include cleanup
@ 2010-01-05 20:10 Olof Johansson
       [not found] ` <20100105201042.GA28367-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Olof Johansson @ 2010-01-05 20:10 UTC (permalink / raw)
  To: ben-linux-elnMNo+KYs3YtjvyW6yDsg
  Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	linux-i2c-u79uwXL29TY76Z2rM5mHXA

linux/i2c/pca953x.h is a very bare include file. Fix check for multiple
includes of linux/i2c/pca953x.h, and add dependent includes into the
header file.

Signed-off-by: Olof Johansson <olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org>

diff --git a/include/linux/i2c/pca953x.h b/include/linux/i2c/pca953x.h
index 81736d6..29699f8 100644
--- a/include/linux/i2c/pca953x.h
+++ b/include/linux/i2c/pca953x.h
@@ -1,3 +1,9 @@
+#ifndef _LINUX_PCA953X_H
+#define _LINUX_PCA953X_H
+
+#include <linux/types.h>
+#include <linux/i2c.h>
+
 /* platform data for the PCA9539 16-bit I/O expander driver */
 
 struct pca953x_platform_data {
@@ -17,3 +23,5 @@ struct pca953x_platform_data {
 				void *context);
 	char		**names;
 };
+
+#endif /* _LINUX_PCA953X_H */

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-01-09 10:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-05 20:10 [PATCH] pca953x: Minor include cleanup Olof Johansson
     [not found] ` <20100105201042.GA28367-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org>
2010-01-05 20:21   ` Wolfram Sang
     [not found]     ` <20100105202158.GB4848-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2010-01-06 11:17       ` Jean Delvare
     [not found]         ` <20100106121722.6e2598ec-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2010-01-08 21:34           ` Olof Johansson
2010-01-09 10:58             ` Jean Delvare

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).