summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-img-spfi.c
diff options
context:
space:
mode:
authorTudor Ambarus <tudor.ambarus@microchip.com>2019-10-24 15:59:55 +0200
committerTudor Ambarus <tudor.ambarus@microchip.com>2019-11-01 09:20:36 +0100
commitb662d398ccf114a80c92140287a6507efb3e2dfc (patch)
treeafa94397dd5d7b5202a9151b5b4710235e73c6d7 /drivers/spi/spi-img-spfi.c
parentmtd: spi-nor: Pointer parameter for FSR in spi_nor_read_fsr() (diff)
downloadlinux-b662d398ccf114a80c92140287a6507efb3e2dfc.tar.xz
linux-b662d398ccf114a80c92140287a6507efb3e2dfc.zip
mtd: spi-nor: Pointer parameter for CR in spi_nor_read_cr()
Let the callers pass the pointer to the DMA-able buffer where the value of the Configuration 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_cr() with negative, spi_nor_read_cr() 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 'drivers/spi/spi-img-spfi.c')
0 files changed, 0 insertions, 0 deletions