Re: [PATCH v5 02/28] driver core: Rename get_dev_from_fwnode() wrapper to get_device_from_fwnode()
From: Ulf Hansson
Date: Fri Mar 13 2026 - 05:46:25 EST
On Thu, 12 Mar 2026 at 16:27, Greg Kroah-Hartman
<gregkh@xxxxxxxxxxxxxxxxxxx> wrote:
>
> On Tue, Mar 10, 2026 at 04:03:42PM +0100, Geert Uytterhoeven wrote:
> > Hi Hervé,
> >
> > On Fri, 27 Feb 2026 at 14:55, Herve Codina <herve.codina@xxxxxxxxxxx> 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@xxxxxxxxxx>
> > > Link: https://lore.kernel.org/lkml/CAGETcx97QjnjVR8Z5g0ndLHpK96hLd4aYSV=iEkKPNbNOccYmA@xxxxxxxxxxxxxx/
> > > Signed-off-by: Herve Codina <herve.codina@xxxxxxxxxxx>
> > > Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
> > > Reviewed-by: Saravana Kannan <saravanak@xxxxxxxxxx>
> > > Reviewed-by: Luca Ceresoli <luca.ceresoli@xxxxxxxxxxx>
> > > Acked-by: Ulf Hansson <ulf.hansson@xxxxxxxxxx>
> >
> > FTR, one more user of get_dev_from_fwnode() appeared in commit
> > 9035073d0ef1de81 ("reset: convert reset core to using firmware nodes")
> > in reset/next.
>
> Ick, that's going to make this hard to land anywhere. This is a rough
> series, perhaps it should be split up to make it easier somehow?
>
> thanks,
>
> greg k-h
I fully agree with the above. Renaming the function isn't necessary
for the $subject series.
I suggest we simply drop this patch from the series - and if the
renaming really makes sense in the end, we can deal with that
separately later on.
So withdrawing my ack from this one.
Kind regards
Uffe