summaryrefslogtreecommitdiff
path: root/drivers/mtd/devices/docg3.h
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@bootlin.com>2018-06-01 13:03:25 +0300
committerBoris Brezillon <boris.brezillon@bootlin.com>2018-06-18 12:45:57 +0300
commit9882b5375df532acb2c2399a90d882461112e612 (patch)
tree53bf5b200f8ebabc0cb749dd52e780f46ccd9b69 /drivers/mtd/devices/docg3.h
parent00a5762b45250ebde8920d3cf68ca3974a0253b2 (diff)
downloadlinux-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