[U-Boot] [PATCH V2 9/9] twl6035: add header guard

Nishanth Menon nm at ti.com
Fri Mar 22 22:33:24 CET 2013


Add an header guard to common header file to prevent multiple includes
messing things up.

Signed-off-by: Nishanth Menon <nm at ti.com>
---
 include/twl6035.h |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/twl6035.h b/include/twl6035.h
index edc2db5..d9131c1 100644
--- a/include/twl6035.h
+++ b/include/twl6035.h
@@ -21,6 +21,9 @@
  * MA 02111-1307 USA
  */
 
+#ifndef TWL6035_H
+#define TWL6035_H
+
 #include <common.h>
 #include <i2c.h>
 
@@ -49,3 +52,5 @@ static inline int twl6035_i2c_read_u8(u8 chip_no, u8 reg, u8 *val)
 
 void twl6035_init_settings(void);
 int twl6035_mmc1_poweron_ldo(void);
+
+#endif /* TWL6035_H */
-- 
1.7.9.5



More information about the U-Boot mailing list