Skip to content

Commit ef50290

Browse files
committed
include: spi: relocate spi_nor.h
This commit moves spi_nor.h from drivers/flash to include/drivers/spi directory and updates affected flash drivers with new include path Signed-off-by: Sara Touqan <[email protected]> Signed-off-by: Sarah Younis <[email protected]> Signed-off-by: Mohammad Odeh <[email protected]>
1 parent dece6f9 commit ef50290

24 files changed

+27
-29
lines changed

drivers/flash/flash_andes_qspi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include <zephyr/logging/log.h>
1616

1717
#include "flash_andes_qspi.h"
18-
#include "spi_nor.h"
18+
#include <zephyr/drivers/spi/spi_nor.h>
1919
#include "jesd216.h"
2020
#include "flash_priv.h"
2121

drivers/flash/flash_andes_qspi_xip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <zephyr/logging/log.h>
2222

2323
#include "flash_andes_qspi.h"
24-
#include "spi_nor.h"
24+
#include <zephyr/drivers/spi/spi_nor.h>
2525

2626
LOG_MODULE_REGISTER(flash_andes_xip, CONFIG_FLASH_LOG_LEVEL);
2727

drivers/flash/flash_max32_spixf_nor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
#include <spixf.h>
4949

50-
#include "spi_nor.h"
50+
#include <zephyr/drivers/spi/spi_nor.h>
5151
#include "jesd216.h"
5252

5353
#include <zephyr/logging/log.h>

drivers/flash/flash_mcux_flexspi_mx25um51345g.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <zephyr/logging/log.h>
1111
#include <zephyr/irq.h>
1212
#include <zephyr/sys/util.h>
13-
#include "spi_nor.h"
13+
#include <zephyr/drivers/spi/spi_nor.h>
1414
#include "memc_mcux_flexspi.h"
1515

1616
#ifdef CONFIG_HAS_MCUX_CACHE

drivers/flash/flash_mcux_flexspi_nor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <zephyr/irq.h>
1212
#include <zephyr/logging/log.h>
1313
#include <zephyr/sys/util.h>
14-
#include "spi_nor.h"
14+
#include <zephyr/drivers/spi/spi_nor.h>
1515
#include "jesd216.h"
1616
#include "memc_mcux_flexspi.h"
1717

drivers/flash/flash_mcux_xspi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <zephyr/logging/log.h>
1515
#include <zephyr/irq.h>
1616
#include "memc_mcux_xspi.h"
17-
#include "spi_nor.h"
17+
#include <zephyr/drivers/spi/spi_nor.h>
1818

1919
LOG_MODULE_REGISTER(flash_mcux_xspi);
2020

drivers/flash/flash_mspi_atxp032.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ typedef enum mspi_timing_param mspi_timing_param;
2525
#endif
2626

2727
#include <zephyr/drivers/flash.h>
28-
#include "spi_nor.h"
28+
#include <zephyr/drivers/spi/spi_nor.h>
2929
LOG_MODULE_REGISTER(flash_mspi_atxp032, CONFIG_FLASH_LOG_LEVEL);
3030

3131
#define NOR_WRITE_SIZE 1

drivers/flash/flash_mspi_emul_device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <zephyr/drivers/mspi.h>
1414
#include <zephyr/drivers/mspi_emul.h>
1515
#include <zephyr/drivers/flash.h>
16-
#include "spi_nor.h"
16+
#include <zephyr/drivers/spi/spi_nor.h>
1717

1818
LOG_MODULE_REGISTER(zephyr_mspi_emul_flash, CONFIG_FLASH_LOG_LEVEL);
1919

drivers/flash/flash_mspi_is25xX0xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include <zephyr/drivers/mspi.h>
1818
#include <zephyr/cache.h>
1919
#include <zephyr/drivers/flash.h>
20-
#include "spi_nor.h"
20+
#include <zephyr/drivers/spi/spi_nor.h>
2121

2222
#if CONFIG_SOC_FAMILY_AMBIQ
2323

drivers/flash/flash_mspi_nor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ extern "C" {
1414
#include <zephyr/drivers/flash.h>
1515
#include <zephyr/drivers/mspi.h>
1616
#include "jesd216.h"
17-
#include "spi_nor.h"
17+
#include <zephyr/drivers/spi/spi_nor.h>
1818

1919
#if DT_ANY_INST_HAS_PROP_STATUS_OKAY(supply_gpios)
2020
#define WITH_SUPPLY_GPIO 1

0 commit comments

Comments
 (0)