[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190312112607.GD31026@ulmo>
Date: Tue, 12 Mar 2019 12:26:07 +0100
From: Thierry Reding <thierry.reding@...il.com>
To: "Enrico Weigelt, metux IT consult" <lkml@...ux.net>
Cc: Ben Dooks <ben.dooks@...ethink.co.uk>,
"Enrico Weigelt, metux IT consult" <info@...ux.net>,
linux-kernel@...r.kernel.org, linus.walleij@...aro.org,
bgolaszewski@...libre.com, andrew@...id.au, f.fainelli@...il.com,
sbranden@...adcom.com, bcm-kernel-feedback-list@...adcom.com,
hoan@...amperecomputing.com, orsonzhai@...il.com,
baolin.wang@...aro.org, zhang.lyra@...il.com,
keguang.zhang@...il.com, vz@...ia.com, matthias.bgg@...il.com,
grygorii.strashko@...com, ssantosh@...nel.org, khilman@...nel.org,
robert.jarzmik@...e.fr, yamada.masahiro@...ionext.com,
jun.nie@...aro.org, shawnguo@...nel.org,
linux-gpio@...r.kernel.org, linux-mips@...r.kernel.org,
linux-pwm@...r.kernel.org, linux-omap@...r.kernel.org,
linux-tegra@...r.kernel.org
Subject: Re: [PATCH 16/42] drivers: gpio: janz-ttl: drop unneccessary temp
variable dev
On Tue, Mar 12, 2019 at 10:33:44AM +0100, Enrico Weigelt, metux IT consult wrote:
> On 12.03.19 10:17, Ben Dooks wrote:
> > On 11/03/2019 18:54, Enrico Weigelt, metux IT consult wrote:
> >> don't need the temporary variable "dev", directly use &pdev->dev
> >>
> >> Signed-off-by: Enrico Weigelt, metux IT consult <info@...ux.net>
> >
> > This is quite usual to do, and I like it as it saves typing.
> > Personally I would say don't bother with this change.
>
> hmm, both approaches have their valid arguments.
>
> I'm not particularily biased to one or another ay, but I'd prefer
> having it consistent everywhere.
You're not consistent within the series itself. In patch 3 you went the
other way and dropped usage of pdev->dev in favour of the local dev
variable.
Thierry
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists