Re: [PATCH v2 06/22] mtd: spi-nor: Rework read_fsr()

2019-10-10 Thread Boris Brezillon
On Tue, 24 Sep 2019 07:46:12 + wrote: > From: Tudor Ambarus > > static int read_fsr(struct spi_nor *nor) > becomes > static int spi_nor_read_fsr(struct spi_nor *nor, u8 *fsr) > > The new function returns 0 on success and -errno otherwise. > We let the callers pass the pointer to the buffer

[PATCH v2 06/22] mtd: spi-nor: Rework read_fsr()

2019-09-24 Thread Tudor.Ambarus
From: Tudor Ambarus static int read_fsr(struct spi_nor *nor) becomes static int spi_nor_read_fsr(struct spi_nor *nor, u8 *fsr) The new function returns 0 on success and -errno otherwise. We let the callers pass the pointer to the buffer where the value of the Flag Status Register will be written