diff options
author | Tudor Ambarus <tudor.ambarus@microchip.com> | 2019-10-24 15:55:34 +0300 |
---|---|---|
committer | Tudor Ambarus <tudor.ambarus@microchip.com> | 2019-11-01 09:33:26 +0200 |
commit | cd1718f5c49d53539c99f45a485ca0e0ac7f0a99 (patch) | |
tree | 7ce494c0de1f700661e4b35110ff8dce4fc69dec /kernel/tsacct.c | |
parent | 7380f79c111cf90481869f83986c355b403faf59 (diff) | |
download | linux-cd1718f5c49d53539c99f45a485ca0e0ac7f0a99.tar.bz2 |
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 'kernel/tsacct.c')
0 files changed, 0 insertions, 0 deletions