lkml.org 
[lkml]   [2019]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH v3 10/32] mtd: spi-nor: Pointer parameter for CR in spi_nor_read_cr()
    Date


    On 10/29/2019 01:17 PM, Tudor Ambarus - M18064 wrote:
    > From: Tudor Ambarus <tudor.ambarus@microchip.com>
    >
    > 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@microchip.com>
    > ---
    > drivers/mtd/spi-nor/spi-nor.c | 55 +++++++++++++++++++++++--------------------
    > 1 file changed, 30 insertions(+), 25 deletions(-)

    Replaced &nor->bouncebuf[0] with nor->bouncebuf and applied to spi-nor/next. Thanks.
    \
     
     \ /
      Last update: 2019-11-02 11:46    [W:8.076 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site