[PATCH] spi: sifive: Tidy up dm_spi_slave_platdata variable
Jagan Teki
jagan at amarulasolutions.com
Mon Apr 20 16:31:06 CEST 2020
On Mon, Apr 20, 2020 at 7:19 PM Bin Meng <bmeng.cn at gmail.com> wrote:
>
> Hi Jagan,
>
> On Mon, Apr 20, 2020 at 6:33 PM Jagan Teki <jagan at amarulasolutions.com> wrote:
> >
> > Usually variable name slave is used for spi_slave structure
> > and plat_slave for the dm_spi_slave_platdata.
> >
> > Let's follow this meaningful notation by replacing slave
> > with plat_slave for dm_spi_slave_platdata structure.
> >
> > Signed-off-by: Jagan Teki <jagan at amarulasolutions.com>
> > ---
> > drivers/spi/spi-sifive.c | 30 +++++++++++++++---------------
> > 1 file changed, 15 insertions(+), 15 deletions(-)
> >
> > diff --git a/drivers/spi/spi-sifive.c b/drivers/spi/spi-sifive.c
> > index 969bd4b75c..8f5efb51a3 100644
> > --- a/drivers/spi/spi-sifive.c
> > +++ b/drivers/spi/spi-sifive.c
> > @@ -95,25 +95,25 @@ struct sifive_spi {
> > };
> >
> > static void sifive_spi_prep_device(struct sifive_spi *spi,
> > - struct dm_spi_slave_platdata *slave)
> > + struct dm_spi_slave_platdata *slave_plat)
>
> Commit message says: plat_slave for the dm_spi_slave_platdata
>
> plat_slave or slave_plat ?
slave_plat will update that, thanks.
More information about the U-Boot
mailing list