diff options
author | 2019-11-02 11:23:35 +0000 | |
---|---|---|
committer | 2019-11-07 08:18:25 +0200 | |
commit | 6e3087a863294d976a899f36373fa1d4c562afd6 (patch) | |
tree | 74c92558aa9eb9ef00068b4a69d9b2097b499226 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mtd: spi-nor: Move the WE and wait calls inside Write SR methods (diff) | |
download | linux-dev-6e3087a863294d976a899f36373fa1d4c562afd6.tar.xz linux-dev-6e3087a863294d976a899f36373fa1d4c562afd6.zip |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions