Re: [PATCH] net-next: gianfar: Use device_get_named_child_node_count()
From: Andy Shevchenko
Date: Tue Jun 17 2025 - 07:47:25 EST
On Tue, Jun 17, 2025 at 01:58:26PM +0300, Matti Vaittinen wrote:
> We can avoid open-coding the loop construct which counts firmware child
> nodes with a specific name by using the newly added
> device_get_named_child_node_count().
>
> The gianfar driver has such open-coded loop. Replace it with the
> device_get_child_node_count_named().
Just a side note: The net-next is assumed to be in the square brackets, so when
you format patch, use something like
git format-patch --subject-prefix="PATCH, net-next" ...
--
With Best Regards,
Andy Shevchenko