lkml.org 
[lkml]   [2022]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 04/10] mtd: devices: Replace spi->chip_select references to spi->chip_select[0]
    Date
    For adding multi CS support & to prevent any existing driver from
    breaking, replaced all spi->chip_select references to spi->chip_slect[0].

    Signed-off-by: Amit Kumar Mahapatra <amit.kumar-mahapatra@amd.com>
    ---
    drivers/mtd/devices/mtd_dataflash.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/mtd/devices/mtd_dataflash.c b/drivers/mtd/devices/mtd_dataflash.c
    index 25bad4318305..5d808ca5e4c8 100644
    --- a/drivers/mtd/devices/mtd_dataflash.c
    +++ b/drivers/mtd/devices/mtd_dataflash.c
    @@ -646,7 +646,7 @@ static int add_dataflash_otp(struct spi_device *spi, char *name, int nr_pages,

    /* name must be usable with cmdlinepart */
    sprintf(priv->name, "spi%d.%d-%s",
    - spi->master->bus_num, spi->chip_select,
    + spi->master->bus_num, spi->chip_select[0],
    name);

    device = &priv->mtd;
    --
    2.17.1
    \
     
     \ /
      Last update: 2022-10-17 14:16    [W:3.816 / U:0.496 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site