drivers: flash stm32 qspi driver dma callback for positive statuses
Like other stm32 drivers, especially the stm32 flash ospi, the DMA callback accepts a null or positive status. It returns an error in case of negative. BTW it also sets variable as unused, like stm32 flash ospi does. Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
parent
f0b7c275bb
commit
dced627c28
1 changed files with 3 additions and 1 deletions
|
@ -556,7 +556,9 @@ static void qspi_dma_callback(const struct device *dev, void *arg,
|
||||||
{
|
{
|
||||||
DMA_HandleTypeDef *hdma = arg;
|
DMA_HandleTypeDef *hdma = arg;
|
||||||
|
|
||||||
if (status != 0) {
|
ARG_UNUSED(dev);
|
||||||
|
|
||||||
|
if (status < 0) {
|
||||||
LOG_ERR("DMA callback error with channel %d.", channel);
|
LOG_ERR("DMA callback error with channel %d.", channel);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue