Supplement define guards to prevent multiple inclusion.

Signed-off-by: Weiguo Li <liw...@foxmail.com>
---
 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..6ba6933409 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

Reply via email to