diff options
author | Eugeniy Paltsev | 2018-03-22 13:50:45 +0300 |
---|---|---|
committer | Jagan Teki | 2018-03-22 23:01:35 +0530 |
commit | d3d8aaec7401703079f296a6460fe649fb06581b (patch) | |
tree | e70695efb27fae09b46e6f334186b1c4ad62b223 /drivers/spi/ich.h | |
parent | fc282c7bcb6a622ce1a0cf82c55654dec5bcb0cd (diff) |
DW SPI: refactor poll_transfer functions
There is no sense in waiting for RX data in dw_reader function:
there is no chance that RX data will appear in RX FIFO if
RX FIFO is empty after previous TX write in dw_writer function.
So get rid of this waiting. After that we can get rid of dw_reader
return value and make it returning void. After that we can get rid
of dw_reader return value check in poll_transfer function.
With these changes we're getting closer to Linux DW SPI driver.
Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
Diffstat (limited to 'drivers/spi/ich.h')
0 files changed, 0 insertions, 0 deletions