summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorTudor Ambarus <tudor.ambarus@microchip.com>2019-10-24 15:55:34 +0300
committerTudor Ambarus <tudor.ambarus@microchip.com>2019-11-01 10:33:26 +0300
commitcd1718f5c49d53539c99f45a485ca0e0ac7f0a99 (patch)
tree7ce494c0de1f700661e4b35110ff8dce4fc69dec /init
parent7380f79c111cf90481869f83986c355b403faf59 (diff)
downloadlinux-cd1718f5c49d53539c99f45a485ca0e0ac7f0a99.tar.xz
mtd: spi-nor: Pointer parameter for SR in spi_nor_read_sr()
Let the callers pass the pointer to the DMA-able buffer where the value of the Status Register will be written. This way we avoid the casts between int and u8, which can be confusing. Callers stop compare the return value of spi_nor_read_sr() with negative, spi_nor_read_sr() 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 'init')
0 files changed, 0 insertions, 0 deletions