We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 651ddd6 commit 812d33bCopy full SHA for 812d33b
drivers/flash/flash_stm32_ospi.c
@@ -2686,7 +2686,7 @@ static struct flash_stm32_ospi_data flash_stm32_ospi_dev_data = {
2686
.qer_type = DT_QER_PROP_OR(0, JESD216_DW15_QER_VAL_S1B6),
2687
.write_opcode = DT_WRITEOC_PROP_OR(0, SPI_NOR_WRITEOC_NONE),
2688
.page_size = SPI_NOR_PAGE_SIZE, /* by default, to be updated by sfdp */
2689
-#if DT_NODE_HAS_PROP(DT_INST(0, st_stm32_ospi_nor), jedec_id)
+#if DT_NODE_HAS_PROP(DT_INST(0, st_stm32_ospi_nor), jedec_id) && defined(CONFIG_FLASH_JESD216_API)
2690
.jedec_id = DT_INST_PROP(0, jedec_id),
2691
#endif /* jedec_id */
2692
OSPI_DMA_CHANNEL(STM32_OSPI_NODE, tx_rx)
0 commit comments