Skip to content

Commit 846dc3f

Browse files
keith-zephyrkartben
authored andcommitted
drivers: flash: npcx: Fix compile error
Remove the #ifdef guard around a function prototype. This was causing a compile error when CONFIG_FLASH_NPCX_FIU_DRA_V2 was disabled. Signed-off-by: Keith Short <keithshort@google.com>
1 parent 4b06ace commit 846dc3f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/flash/flash_npcx_fiu_qspi.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,13 @@ void qspi_npcx_fiu_mutex_lock_configure(const struct device *dev,
9797
*/
9898
void qspi_npcx_fiu_mutex_unlock(const struct device *dev);
9999

100-
#if defined(CONFIG_FLASH_NPCX_FIU_DRA_V2)
101100
/**
102101
* @brief Set the size of the address space allocated for SPI device.
103102
*
104103
* @param dev Pointer to the device structure for qspi bus controller instance.
105104
* @param cfg Pointer to the configuration for the device on qspi bus.
106105
*/
107106
void qspi_npcx_fiu_set_spi_size(const struct device *dev, const struct npcx_qspi_cfg *cfg);
108-
#endif
109107

110108
#ifdef __cplusplus
111109
}

0 commit comments

Comments
 (0)