diff options
author | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-06-01 13:03:25 +0300 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-06-18 12:45:57 +0300 |
commit | 9882b5375df532acb2c2399a90d882461112e612 (patch) | |
tree | 53bf5b200f8ebabc0cb749dd52e780f46ccd9b69 /drivers/mtd/devices/docg3.h | |
parent | 00a5762b45250ebde8920d3cf68ca3974a0253b2 (diff) | |
download | linux-9882b5375df532acb2c2399a90d882461112e612.tar.xz |
mtd: m25p80: Use SPI_MEM_OP_NO_DUMMY instead of SPI_MEM_OP_DUMMY(0, x)
SPI_MEM_OP_DUMMY(0, x) means there's 0 dummy bytes to send, which is
similar to SPI_MEM_OP_NO_DUMMY except it's less clear. Use
SPI_MEM_OP_NO_DUMMY instead of SPI_MEM_OP_DUMMY(0, x) in
m25p80_write().
Also stop updating op.dummy.buswidth since this value is only
meaningful if you have dummy bytes.
Reported-by: Cyrille Pitchen <cyrille.pitchen@microchip.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
Diffstat (limited to 'drivers/mtd/devices/docg3.h')
0 files changed, 0 insertions, 0 deletions