diff options
author | 2020-02-19 00:21:00 +0300 | |
---|---|---|
committer | 2020-02-19 09:17:22 +0200 | |
commit | b7ad6be2ee67b12cba31d30deb34beab19acac57 (patch) | |
tree | 6f4703f9b38a2c100c9d248fccb936b6a367554b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mtd: spi-nor: introduce SR_BP_SHIFT define (diff) | |
download | linux-dev-b7ad6be2ee67b12cba31d30deb34beab19acac57.tar.xz linux-dev-b7ad6be2ee67b12cba31d30deb34beab19acac57.zip |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions