Patchwork [U-Boot,V3,10/10] palmas: add header guard

login
register
mail settings
Submitter Nishanth Menon
Date March 26, 2013, 3:20 p.m.
Message ID <1364311258-21754-11-git-send-email-nm@ti.com>
Download mbox | patch
Permalink /patch/231312/
State Accepted
Delegated to: Tom Rini
Headers show

Comments

Nishanth Menon - March 26, 2013, 3:20 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>
---
V2: http://patchwork.ozlabs.org/patch/230264/
Changes since V2:
	- use PALMAS instead of TWL6035
 include/palmas.h |    4 ++++
 1 file changed, 4 insertions(+)

Patch

diff --git a/include/palmas.h b/include/palmas.h
index e629fbf..3b18589 100644
--- a/include/palmas.h
+++ b/include/palmas.h
@@ -20,6 +20,8 @@ 
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  * MA 02111-1307 USA
  */
+#ifndef PALMAS_H
+#define PALMAS_H
 
 #include <common.h>
 #include <i2c.h>
@@ -52,3 +54,5 @@  static inline int palmas_i2c_read_u8(u8 chip_no, u8 reg, u8 *val)
 
 void palmas_init_settings(void);
 int palmas_mmc1_poweron_ldo(void);
+
+#endif /* PALMAS_H */