[10/16] raw/ifpga/base: add define guards to avoid multi-inclusion

Message ID tencent_34A71311733A5ADF172344223C31603C7D08@qq.com (mailing list archive)
State Superseded, archived
Headers
Series [01/16] bus/dpaa: add define guards to avoid multiple inclusion |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Weiguo Li Feb. 6, 2022, 3:58 a.m. UTC
  Supplement define guards to prevent multiple inclusion.

Signed-off-by: Weiguo Li <liwg06@foxmail.com>
---
 drivers/raw/ifpga/base/opae_at24_eeprom.h | 5 +++++
 1 file changed, 5 insertions(+)
  

Patch

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