Skip to content

Commit ddb8842

Browse files
committed
drivers/flash: Fix #if condition for is_area_readable for mcux
is_area_readable is used for SOCS other than LPC55XXX chips, not just chips other than LPC55S36. Change the condition which elides this code to avoid a GCC 14.3 warning. Signed-off-by: Keith Packard <[email protected]>
1 parent 175cce1 commit ddb8842

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/flash/soc_flash_mcux.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ LOG_MODULE_REGISTER(flash_mcux);
5555

5656
#define SOC_NV_FLASH_NODE DT_INST(0, soc_nv_flash)
5757

58-
#if defined(CONFIG_CHECK_BEFORE_READING) && !defined(CONFIG_SOC_LPC55S36)
58+
#if defined(CONFIG_CHECK_BEFORE_READING) && !defined(CONFIG_SOC_SERIES_LPC55XXX)
5959
#define FMC_STATUS_FAIL FLASH_INT_CLR_ENABLE_FAIL_MASK
6060
#define FMC_STATUS_ERR FLASH_INT_CLR_ENABLE_ERR_MASK
6161
#define FMC_STATUS_DONE FLASH_INT_CLR_ENABLE_DONE_MASK
@@ -115,7 +115,7 @@ static status_t is_area_readable(uint32_t addr, size_t len)
115115

116116
return 0;
117117
}
118-
#endif /* CONFIG_CHECK_BEFORE_READING && ! CONFIG_SOC_LPC55S36 */
118+
#endif /* CONFIG_CHECK_BEFORE_READING && ! CONFIG_SOC_SERIES_LPC55XXX */
119119

120120
#define SOC_FLASH_NEED_CLEAR_CACHES 1
121121
#ifdef CONFIG_SOC_SERIES_MCXW

0 commit comments

Comments
 (0)