On 10/31/2019 12:58 PM, Boris Brezillon wrote: > External E-Mail > > > On Tue, 29 Oct 2019 11:17:04 +0000 > <Tudor.Ambarus@xxxxxxxxxxxxx> wrote: > >> From: Tudor Ambarus <tudor.ambarus@xxxxxxxxxxxxx> >> >> Let the callers pass the pointer to the DMA-able buffer where >> the value of the Configuration Register will be written. This way we >> avoid the casts between int and u8, which can be confusing. >> >> Callers stop compare the return value of spi_nor_read_cr() with negative, >> spi_nor_read_cr() returns 0 on success and -errno otherwise. >> >> Signed-off-by: Tudor Ambarus <tudor.ambarus@xxxxxxxxxxxxx> > > Reviewed-by: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxx> > > There's just this &nor->bouncebuf[0] that I'd prefer to be turned into > nor->bouncebuf if you're okay. > I used &nor->bouncebuf[0] and not nor->bouncebuf for consistency reasons, but sure I can update this. When writing the Status Register with two bytes, it happens that in the code I pass pointer to the second byte, so &nor->bouncebuf[1]. I'm ok with both ways, and since you signaled it, I'll change according to your suggestion. Thanks for reviewing the series! ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/