Re: [PATCH] Driver core: add bus_find_device_by_of_node

From: Silesh C V
Date: Fri Sep 21 2018 - 05:46:06 EST


Hello Rafael,

On Fri, Sep 21, 2018 at 2:47 PM Rafael J. Wysocki <rafael@xxxxxxxxxx> wrote:
>
> >
> > >
> > > Second, what about a more generic bus_find_device_by_fwnode() ?
> >
> > If you think that the above requirement warrants the inclusion of
> > bus_find_device_by_of_node, I can try implementing this in v2.
>
> I'm not really sure what you mean, but if there is
> bus_find_device_by_fwnode(), it will be useful not just for DT code,
> but generally, and getting an of_node from fwnode is trivial.
>

OK. Will do this and send out a patch soon.

Thanks,
Silesh