Skip to content

Commit 812d33b

Browse files
bearshdkalowsk
authored andcommitted
drivers: flash_stm32_qspi: fix conditional to assing jedec_id property
the jedec_id field is only available if CONFIG_FLASH_JESD216_API is set Signed-off-by: Martin Gysel <me@bearsh.org>
1 parent 651ddd6 commit 812d33b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/flash/flash_stm32_ospi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2686,7 +2686,7 @@ static struct flash_stm32_ospi_data flash_stm32_ospi_dev_data = {
26862686
.qer_type = DT_QER_PROP_OR(0, JESD216_DW15_QER_VAL_S1B6),
26872687
.write_opcode = DT_WRITEOC_PROP_OR(0, SPI_NOR_WRITEOC_NONE),
26882688
.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)
2689+
#if DT_NODE_HAS_PROP(DT_INST(0, st_stm32_ospi_nor), jedec_id) && defined(CONFIG_FLASH_JESD216_API)
26902690
.jedec_id = DT_INST_PROP(0, jedec_id),
26912691
#endif /* jedec_id */
26922692
OSPI_DMA_CHANNEL(STM32_OSPI_NODE, tx_rx)

0 commit comments

Comments
 (0)