]> asedeno.scripts.mit.edu Git - linux.git/commit
mtd: spi-nor: Stop compare with negative in Reg Ops methods
authorTudor Ambarus <tudor.ambarus@microchip.com>
Tue, 29 Oct 2019 11:16:54 +0000 (11:16 +0000)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Fri, 1 Nov 2019 06:28:43 +0000 (08:28 +0200)
commitebe04bfe26dd816839d3d24fdeb5f6bed430a3df
tree610457e4b5d6ec7ecb7613bb6b90cc6b448d35be
parent502c4b0a14458a129ae4d6797f182958af8e3f89
mtd: spi-nor: Stop compare with negative in Reg Ops methods

spi_mem_exec_op()
nor->controller_ops->write_reg()
nor->controller_ops->read_reg()
spi_nor_wait_till_ready()
Return 0 on success, -errno otherwise.

Stop compare with negative and compare with zero in all the register
operations methods.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
drivers/mtd/spi-nor/spi-nor.c