commit | 718dd9e69f7c4558f72f5d68583bbf51d46a4d4b | [log] [tgz] |
---|---|---|
author | Tudor Ambarus <tudor.ambarus@microchip.com> | Sat Nov 02 11:23:34 2019 +0000 |
committer | Tudor Ambarus <tudor.ambarus@microchip.com> | Thu Nov 07 08:18:24 2019 +0200 |
tree | 0ba396a48d576531abfdec7c9abc842b8357f33c | |
parent | abd494bb071f9d988f5e36499923ab00439dc0d2 [diff] |
mtd: spi-nor: Move the WE and wait calls inside Write SR methods Avoid duplicating code by moving the calls to spi_nor_write_enable() and spi_nor_wait_till_ready() inside the Write Status Register methods. Move spi_nor_write_sr() to avoid forward declaration of spi_nor_wait_till_ready(). Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>