mtd: m25p80: Use SPI_MEM_OP_NO_DUMMY instead of SPI_MEM_OP_DUMMY(0, x)
authorBoris Brezillon <boris.brezillon@bootlin.com>
Fri, 1 Jun 2018 10:03:25 +0000 (12:03 +0200)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Mon, 18 Jun 2018 09:45:57 +0000 (11:45 +0200)
commit9882b5375df532acb2c2399a90d882461112e612
tree53bf5b200f8ebabc0cb749dd52e780f46ccd9b69
parent00a5762b45250ebde8920d3cf68ca3974a0253b2
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>
drivers/mtd/devices/m25p80.c