diff options
author | Tudor Ambarus <tudor.ambarus@microchip.com> | 2019-11-02 11:23:35 +0000 |
---|---|---|
committer | Tudor Ambarus <tudor.ambarus@microchip.com> | 2019-11-07 08:18:25 +0200 |
commit | 6e3087a863294d976a899f36373fa1d4c562afd6 (patch) | |
tree | 74c92558aa9eb9ef00068b4a69d9b2097b499226 /drivers/pcmcia | |
parent | 718dd9e69f7c4558f72f5d68583bbf51d46a4d4b (diff) |
mtd: spi-nor: Merge spi_nor_write_sr() and spi_nor_write_sr_cr()
Merge
static int spi_nor_write_sr(struct spi_nor *nor, u8 val)
static int spi_nor_write_sr_cr(struct spi_nor *nor, const u8 *sr_cr)
into
static int spi_nor_write_sr(struct spi_nor *nor, const u8 *sr, size_t len)
The Status Register can be written with one or two bytes. Merge
the two functions to avoid code duplication.
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Diffstat (limited to 'drivers/pcmcia')
0 files changed, 0 insertions, 0 deletions