Re: [PATCH v2 05/22] mtd: spi-nor: Rework read_sr()

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

[PATCH v2 05/22] mtd: spi-nor: Rework read_sr()

2019-09-24 Thread Tudor.Ambarus
From: Tudor Ambarus static int read_sr(struct spi_nor *nor) becomes static int spi_nor_read_sr(struct spi_nor *nor, u8 *sr) 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 Status Register will be written. This w