[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZQA+716X8EVmIRAt@smile.fi.intel.com>
Date: Tue, 12 Sep 2023 13:35:27 +0300
From: Andy Shevchenko <andy@...nel.org>
To: Bartosz Golaszewski <brgl@...ev.pl>
Cc: Linus Walleij <linus.walleij@...aro.org>,
Orson Zhai <orsonzhai@...il.com>,
Baolin Wang <baolin.wang@...ux.alibaba.com>,
Chunyan Zhang <zhang.lyra@...il.com>,
linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org,
Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
Subject: Re: [RFT PATCH 2/3] gpio: eic-sprd: use a helper variable for
&pdev->dev
On Tue, Sep 12, 2023 at 11:45:18AM +0200, Bartosz Golaszewski wrote:
> From: Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
>
> Instead of dereferencing pdev everywhere, just store the address of the
> underlying struct device in a local variable.
...
> - return devm_add_action_or_reset(&pdev->dev,
> - sprd_eic_unregister_notifier,
> + return devm_add_action_or_reset(dev, sprd_eic_unregister_notifier,
> &sprd_eic->irq_nb);
Ping-pong style detected: Lines added / modified by previous patch in the same
series got modified again.
If you look at how I do that, I introduce the temporary variable with my new
code and then reuse it later on.
OTOH, I see that the first one is supposed to be backported (?) in such case
perhaps it's fine.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists