mtd: spi-nor: Fix direction of the write_sr() transfer
authorTudor Ambarus <tudor.ambarus@microchip.com>
Fri, 4 Oct 2019 10:47:55 +0000 (10:47 +0000)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 4 Oct 2019 16:09:01 +0000 (18:09 +0200)
commit41e086e1550646344dd47d3462ca2d19caabb943
tree9e8a248d64bf3b7978cff5391850c7ba3811e93a
parent54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c
mtd: spi-nor: Fix direction of the write_sr() transfer

write_sr() sends data to the SPI memory, fix the direction.

Fixes: b35b9a10362d ("mtd: spi-nor: Move m25p80 code in spi-nor.c")
Reported-by: John Garry <john.garry@huawei.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Tested-by: John Garry <john.garry@huawei.com>
Acked-by: Vignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/spi-nor/spi-nor.c