Skip to content

Commit f7dfcfb

Browse files
ubiedakartben
authored andcommitted
spi: lpspi: Add include guards to common header file
Not motivated by any impacted functionality but rather following good practices. Recursive inclusions may be confusing and hard to diagnose. Signed-off-by: Luis Ubieda <[email protected]>
1 parent 97eb3eb commit f7dfcfb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/spi/spi_nxp_lpspi/spi_nxp_lpspi_priv.h

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

7+
#ifndef ZEPHYR_DRIVERS_SPI_SPI_NXP_LPSPI_PRIV_H_
8+
#define ZEPHYR_DRIVERS_SPI_SPI_NXP_LPSPI_PRIV_H_
9+
710
#include <zephyr/drivers/spi.h>
811
#include <zephyr/drivers/spi/rtio.h>
912
#include <zephyr/drivers/pinctrl.h>
@@ -136,3 +139,5 @@ int lpspi_wait_tx_fifo_empty(const struct device *dev);
136139

137140
#define SPI_NXP_LPSPI_HAS_DMAS(n) \
138141
UTIL_AND(DT_INST_DMAS_HAS_NAME(n, tx), DT_INST_DMAS_HAS_NAME(n, rx))
142+
143+
#endif /* ZEPHYR_DRIVERS_SPI_SPI_NXP_LPSPI_PRIV_H_ */

0 commit comments

Comments
 (0)