diff options
author | Sergei Shtylyov | 2020-02-19 00:21:00 +0300 |
---|---|---|
committer | Tudor Ambarus | 2020-02-19 09:17:22 +0200 |
commit | b7ad6be2ee67b12cba31d30deb34beab19acac57 (patch) | |
tree | 6f4703f9b38a2c100c9d248fccb936b6a367554b /drivers/mtd/spi-nor/intel-spi.c | |
parent | 8c79fa6c44deac8042bd747527fea06a32738158 (diff) |
mtd: spi-nor: split spi_nor_spimem_xfer_data()
spi_nor_spimem_xfer_data() being a helper function for the data reads/
writes contains 3 fragments that depend on the data direction; and I'm
going to add another one to call the SPI dirmap API...
I think this function should be split so that the common fragments are
put into 2 functions, spi_nor_spimem_bounce() and spi_nor_spimem_exec_op()
called from spi_nor_spimem_{read|write}_data(), and the data direction
dependent bits moved back into those read/write functions -- that way we
would be able to avoid *goto*s otherwise needed in the next patch adding
the SPI dirmap support...
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Diffstat (limited to 'drivers/mtd/spi-nor/intel-spi.c')
0 files changed, 0 insertions, 0 deletions