Skip to content

Commit 6dc0af9

Browse files
committed
include: dma: smartbond: Correct include-guard
Both `include/zephyr/drivers/dma/dma_smartbond.h` and `include/zephyr/dt-bindings/dma/dma_smartbond.h` define `DMA_SMARTBOND_H_` to prevent duplicate inclusion, so it cannot be properly prevented. Change to a file path name-based definition. Signed-off-by: TOKITA Hiroshi <[email protected]>
1 parent 4300a4c commit 6dc0af9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

include/zephyr/drivers/dma/dma_smartbond.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#ifndef DMA_SMARTBOND_H_
8-
#define DMA_SMARTBOND_H_
7+
#ifndef ZEPHYR_INCLUDE_DRIVERS_DMA_DMA_SMARTBOND_H_
8+
#define ZEPHYR_INCLUDE_DRIVERS_DMA_DMA_SMARTBOND_H_
99

1010
/**
1111
* @brief Vendror-specific DMA peripheral triggering sources.
@@ -30,4 +30,4 @@ enum dma_smartbond_trig_mux {
3030
DMA_SMARTBOND_TRIG_MUX_NONE = 0xF
3131
};
3232

33-
#endif /* DMA_SMARTBOND_H_ */
33+
#endif /* ZEPHYR_INCLUDE_DRIVERS_DMA_DMA_SMARTBOND_H_ */

include/zephyr/dt-bindings/dma/dma_smartbond.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#ifndef DMA_SMARTBOND_H_
8-
#define DMA_SMARTBOND_H_
7+
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_DMA_DMA_SMARTBOND_H_
8+
#define ZEPHYR_INCLUDE_DT_BINDINGS_DMA_DMA_SMARTBOND_H_
99

1010
/**
1111
* @brief Vendror-specific DMA peripheral triggering sources.
@@ -28,4 +28,4 @@
2828
#define DMA_SMARTBOND_TRIG_MUX_SDADC 0xD
2929
#define DMA_SMARTBOND_TRIG_MUX_NONE 0xF
3030

31-
#endif /* DMA_SMARTBOND_H_ */
31+
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_DMA_DMA_SMARTBOND_H_ */

0 commit comments

Comments
 (0)