Supplement define guards to prevent multiple inclusion.
Signed-off-by: Weiguo Li <[email protected]>
---
drivers/raw/ifpga/base/opae_at24_eeprom.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/raw/ifpga/base/opae_at24_eeprom.h
b/drivers/raw/ifpga/base/opae_at24_eeprom.h
index caae9a3ec1..9d40b84304 100644
--- a/drivers/raw/ifpga/base/opae_at24_eeprom.h
+++ b/drivers/raw/ifpga/base/opae_at24_eeprom.h
@@ -3,6 +3,9 @@
* Copyright(c) 2010-2019 Intel Corporation
*/
+#ifndef OPAE_AT24_EEPROM_H
+#define OPAE_AT24_EEPROM_H
+
#define AT24C512_PAGE_SIZE 128
#define AT24C512_IO_LIMIT 128
@@ -12,3 +15,5 @@ int at24_eeprom_read(struct altera_i2c_dev *dev, unsigned int
slave_addr,
u32 offset, u8 *buf, int count);
int at24_eeprom_write(struct altera_i2c_dev *dev, unsigned int slave_addr,
u32 offset, u8 *buf, int count);
+
+#endif /* OPAE_AT24_EEPROM_H */
--
2.25.1