[PATCH v3 02/28] driver core: Rename get_dev_from_fwnode() wrapper to get_device_from_fwnode()
Herve Codina
herve.codina at bootlin.com
Thu Jul 3 01:10:58 PDT 2025
On Wed, 2 Jul 2025 20:17:15 +0200
"Rafael J. Wysocki" <rafael at kernel.org> wrote:
> On Fri, Jun 13, 2025 at 3:48 PM Herve Codina <herve.codina at bootlin.com> wrote:
> >
> > get_dev_from_fwnode() calls get_device() and so it acquires a reference
> > on the device returned.
> >
> > In order to be more obvious that this wrapper is a get_device() variant,
> > rename it to get_device_from_fwnode().
> >
> > Suggested-by: Mark Brown <broonie at kernel.org>
> > Link: https://lore.kernel.org/lkml/CAGETcx97QjnjVR8Z5g0ndLHpK96hLd4aYSV=iEkKPNbNOccYmA@mail.gmail.com/
> > Signed-off-by: Herve Codina <herve.codina at bootlin.com>
> > Reviewed-by: Andy Shevchenko <andriy.shevchenko at linux.intel.com>
> > Reviewed-by: Saravana Kannan <saravanak at google.com>
> > Reviewed-by: Luca Ceresoli <luca.ceresoli at bootlin.com>
> > ---
> > drivers/base/core.c | 14 +++++++-------
> > 1 file changed, 7 insertions(+), 7 deletions(-)
> >
...
>
> There are patches in flight that add new users of get_dev_from_fwnode(), see
>
> https://lore.kernel.org/linux-pm/20250701114733.636510-1-ulf.hansson@linaro.org/T/#mc45a73769821cc520c35d8eb92d4bac75412bb7c
Thanks for pointing out.
I will monitor the series you pointed out.
Once it is applied, I will update my modifications but I will probably send other
iterations in the meantime in order to move forward on the other topic without
waiting for the Ulf's series.
In my other iterations I will point the dependency in patches impacted i.e
patches 2 and 3.
Best regards,
Hervé
More information about the linux-arm-kernel
mailing list