summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorTudor Ambarus <tudor.ambarus@microchip.com>2019-10-24 16:40:13 +0300
committerTudor Ambarus <tudor.ambarus@microchip.com>2019-11-01 09:33:51 +0200
commit5ce1b49ccb52fc3dd5679d8c523a3e8b5c812fb0 (patch)
tree51308e0332844ff2795e9c30b003de919d466556 /ipc
parentcd1718f5c49d53539c99f45a485ca0e0ac7f0a99 (diff)
downloadlinux-5ce1b49ccb52fc3dd5679d8c523a3e8b5c812fb0.tar.bz2
mtd: spi-nor: Pointer parameter for FSR in spi_nor_read_fsr()
Let the callers pass the pointer to the DMA-able buffer where the value of the Flag Status Register will be written. This way we avoid the casts between int and u8, which can be confusing. Caller stops compare the return value of spi_nor_read_fsr() with negative, spi_nor_read_fsr() returns 0 on success and -errno otherwise. Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions