Skip to content

Commit

Permalink
drivers: flash: stm32 ospi correct memory map return code
Browse files Browse the repository at this point in the history
Use ENOTSUP instead of EIO to signal about not
supported configuration.

Signed-off-by: Georgij Cernysiov <[email protected]>
  • Loading branch information
GeorgeCGV authored and carlescufi committed Aug 13, 2024
1 parent a1e39d0 commit 5246c16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/flash/flash_stm32_ospi.c
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,7 @@ static int stm32_ospi_set_memorymap(const struct device *dev)
(stm32_ospi_hal_address_size(dev) == HAL_OSPI_ADDRESS_24_BITS)) {
/* OPI mode and 3-bytes address size not supported by memory */
LOG_ERR("OSPI_SPI_MODE in 3Bytes addressing is not supported");
return -EIO;
return -ENOTSUP;
}

/* Initialize the read command */
Expand Down

0 comments on commit 5246c16

Please sign in to comment.