summaryrefslogtreecommitdiffstats
path: root/include/linux/i2c
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2010-03-05 13:44:34 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2010-03-06 11:26:48 -0800
commit62fecb70cfaa9b4c6aa1981acd53b18f4ad925f0 (patch)
treea74c1d96c9af8d9602e6ab85bf9b2ef6429ba92b /include/linux/i2c
parente952805d2d2e706aed182723e5ab3ec0b1f91de3 (diff)
downloadop-kernel-dev-62fecb70cfaa9b4c6aa1981acd53b18f4ad925f0.zip
op-kernel-dev-62fecb70cfaa9b4c6aa1981acd53b18f4ad925f0.tar.gz
pca953x: minor include cleanup
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@lixom.net> Acked-by: Wolfram Sang <w.sang@pengutronix.de> Acked-by: Jean Delvare <khali@linux-fr.org> Cc: David Brownell <david-b@pacbell.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/i2c')
-rw-r--r--include/linux/i2c/pca953x.h8
1 files changed, 8 insertions, 0 deletions
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 */
OpenPOWER on IntegriCloud