[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <AM6PR0402MB3607B8911CFDDE4E3E0EF0B3FFB00@AM6PR0402MB3607.eurprd04.prod.outlook.com>
Date: Tue, 26 May 2020 01:26:01 +0000
From: Andy Duan <fugang.duan@....com>
To: David Miller <davem@...emloft.net>
CC: "peppe.cavallaro@...com" <peppe.cavallaro@...com>,
"alexandre.torgue@...com" <alexandre.torgue@...com>,
"joabreu@...opsys.com" <joabreu@...opsys.com>,
"kuba@...nel.org" <kuba@...nel.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"mcoquelin.stm32@...il.com" <mcoquelin.stm32@...il.com>,
"p.zabel@...gutronix.de" <p.zabel@...gutronix.de>,
"linux-stm32@...md-mailman.stormreply.com"
<linux-stm32@...md-mailman.stormreply.com>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>
Subject: RE: [EXT] Re: [PATCH net 1/2] net: ethernet: dwmac: add Ethernet glue
logic for NXP imx8 chip
From: David Miller <davem@...emloft.net> Sent: Tuesday, May 26, 2020 9:13 AM
> From: Fugang Duan <fugang.duan@....com>
> Date: Mon, 25 May 2020 18:29:13 +0800
>
> > +static int imx_dwmac_init(struct platform_device *pdev, void *priv) {
> > + struct imx_priv_data *dwmac = priv;
> > + struct plat_stmmacenet_data *plat_dat = dwmac->plat_dat;
> > + int ret;
> > +
>
> Please code these sequences as:
>
> struct plat_stmmacenet_data *plat_dat;
> struct imx_priv_data *dwmac = priv;
> int ret;
>
> plat_dat = dwmac->plat_dat;
>
> In order to have reverse christmas three local variable ordering.
>
> THank you.
Thanks, David.
I will update the change in v2.
Andy
Powered by blists - more mailing lists