Skip to contentSkip to conversation

broadcom: add include guards to include/linux/brcmphy.h

PATCH Applied Florian Fainelli 2 participants 2 messages May 15, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 broadcom: add include guards to include/linux/brcmphy.h

include/linux/brcmphy.h is currently not protected against double inclusion, add ifdefs guard to fix that.

---
 include/linux/brcmphy.h | 5 +++++
 1 file changed, 5 insertions(+)
include/linux/brcmphy.h +5 -0
index b840a49..677b4f0 100644
@@ -1,3 +1,6 @@
+#ifndef _LINUX_BRCMPHY_H
+#define _LINUX_BRCMPHY_H
+
 #define PHY_ID_BCM50610			0x0143bd60
 #define PHY_ID_BCM50610M		0x0143bd70
 #define PHY_ID_BCM5241			0x0143bc30
@@ -29,3 +32,5 @@
 #define PHY_BRCM_CLEAR_RGMII_MODE	0x00004000
 #define PHY_BRCM_DIS_TXCRXC_NOENRGY	0x00008000
 #define PHY_BCM_FLAGS_VALID		0x80000000
+
+#endif /* _LINUX_BRCMPHY_H */
Signature · 1 line
1.8.1.2