drivers/spi/spi_xlnx_axi_quadspi: Build fix w CONFIG_SPI_ASYNC
Fix a build error when CONFIG_SPI_ASYNC is set.
The issue was detected by CI
```
spi_xlnx_axi_quadspi.c: In function 'xlnx_quadspi_isr':
spi_xlnx_axi_quadspi.c:489:21: error: 'ctx' undeclared
489 | if (ctx->asynchronous) {
| ^~~
```
Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
parent
6ac0d8bf84
commit
0cf89bb8b4
1 changed files with 2 additions and 0 deletions
|
|
@ -486,6 +486,8 @@ static void xlnx_quadspi_isr(const struct device *dev)
|
|||
* work in the ISR, so just post the event.
|
||||
*/
|
||||
#ifdef CONFIG_SPI_ASYNC
|
||||
struct spi_context *ctx = &data->ctx;
|
||||
|
||||
if (ctx->asynchronous) {
|
||||
xlnx_quadspi_read_fifo(dev);
|
||||
xlnx_quadspi_start_tx(dev);
|
||||
|
|
|
|||
Loading…
Reference in a new issue