diff options
| author | Xu Yilun <[email protected]> | 2020-12-29 05:27:41 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2020-12-29 13:18:09 +0000 |
| commit | ede090f5a438e97d0586f64067bbb956e30a2a31 (patch) | |
| tree | 9722fd456a268a15b3fbe1f4591174a7076d3259 /drivers/usb/cdns3/cdns3-imx.c | |
| parent | Merge tag 'v5.11-rc1' into spi-5.11 (diff) | |
| download | kernel-ede090f5a438e97d0586f64067bbb956e30a2a31.tar.gz kernel-ede090f5a438e97d0586f64067bbb956e30a2a31.zip | |
spi: altera: fix return value for altera_spi_txrx()
This patch fixes the return value for altera_spi_txrx. It should return
1 for interrupt transfer mode, and return 0 for polling transfer mode.
The altera_spi_txrx() implements the spi_controller.transfer_one
callback. According to the spi-summary.rst, the transfer_one should
return 0 when transfer is finished, return 1 when transfer is still in
progress.
Signed-off-by: Xu Yilun <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions
