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

login
register
mail settings
Submitter Nishanth Menon
Date March 22, 2013, 9:33 p.m.
Message ID <1363988004-25819-10-git-send-email-nm@ti.com>
Download mbox | patch
Permalink /patch/230264/
State Superseded
Delegated to: Tom Rini
Headers show

Comments

Nishanth Menon - March 22, 2013, 9:33 p.m.
Add an header guard to common header file to prevent multiple includes
messing things up.

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

Patch

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 */