drivers: flash: stm32wba: fix build issue when BLE enabled

Specific flash driver is used for stm32wbax when ble is
enabled. A simple typo error was fixed to properly build
all the samples where flash and ble are enabled,
such as the peripheral one.

Signed-off-by: Alessandro Manganaro <alessandro.manganaro@st.com>
This commit is contained in:
Alessandro Manganaro 2025-06-05 13:49:41 +02:00 committed by Dan Kalowsky
commit bbef47fc56

View file

@ -166,7 +166,7 @@ static const struct flash_parameters *
}
/* Gives the total logical device size in bytes and return 0. */
static int flash_stm32h7_get_size(const struct device *dev, uint64_t *size)
static int flash_stm32wba_get_size(const struct device *dev, uint64_t *size)
{
ARG_UNUSED(dev);
@ -204,7 +204,7 @@ static DEVICE_API(flash, flash_stm32_api) = {
.write = flash_stm32_write,
.read = flash_stm32_read,
.get_parameters = flash_stm32_get_parameters,
.get_size = flash_stm32_get_size,
.get_size = flash_stm32wba_get_size,
#ifdef CONFIG_FLASH_PAGE_LAYOUT
.page_layout = flash_stm32wba_page_layout,
#endif