drivers: flash: spi_nor: Return EINVAL when erase out of range
Fixes spi_nor_erase to return -EINVAL instead of -ENODEV
when erase requested is out of flash range.
This makes the SPI NOR return the same error as all other errors.
Fixes #54897
Signed-off-by:
Dominik Ermel <dominik.ermel@nordicsemi.no>
Loading
Please sign in to comment