pca953x: minor include cleanup
authorOlof Johansson <[email protected]>
Fri, 5 Mar 2010 21:44:34 +0000 (13:44 -0800)
committerLinus Torvalds <[email protected]>
Sat, 6 Mar 2010 19:26:48 +0000 (11:26 -0800)
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 <[email protected]>
Acked-by: Wolfram Sang <[email protected]>
Acked-by: Jean Delvare <[email protected]>
Cc: David Brownell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/i2c/pca953x.h

index 81736d6a8db7380280a8da7757ca017ed2ce08e4..29699f8dc5a479a2893baf2be374921fcfe58264 100644 (file)
@@ -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 */