Title: [6938] trunk/include/linux/spi/adxl34x.h: [#5146] Develop Linux driver for ADXL345/346 Three-Axis Digital
Revision
6938
Author
hennerich
Date
2009-07-07 03:09:17 -0500 (Tue, 07 Jul 2009)

Log Message

[#5146] Develop Linux driver for ADXL345/346 Three-Axis Digital
Accelerometers

From: Chris Verges <[email protected]>

is there a #ifdef _ADXL34X_H_ / #endif missing from the beginning and
end of the file, respectively, to prevent redeclaration of the struct in
the event of multiple imports?

Modified Paths

Diff

Modified: trunk/include/linux/spi/adxl34x.h (6937 => 6938)


--- trunk/include/linux/spi/adxl34x.h	2009-07-07 08:00:44 UTC (rev 6937)
+++ trunk/include/linux/spi/adxl34x.h	2009-07-07 08:09:17 UTC (rev 6938)
@@ -6,6 +6,9 @@
  * device's "struct device" holds this information.
  */
 
+#ifndef _ADXL34X_H_
+#define _ADXL34X_H_
+
 struct adxl34x_platform_data {
 
 	/*
@@ -283,3 +286,4 @@
 	unsigned int ev_code_ff;	/* EV_KEY */
 	unsigned int ev_code_act_inactivity;	/* EV_KEY */
 };
+#endif
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to