Thread (3 messages) flat view 3 messages, 3 authors, 2025-06-19

Re: [PATCH net-next v2] net: gianfar: Use device_get_named_child_node_count()

From: Simon Horman <horms@kernel.org>
Date: 2025-06-18 18:57:00
Also in: lkml

On Wed, Jun 18, 2025 at 03:22:02PM +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().

Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
Previously sent as part of the BD79124 ADC series:
https://lore.kernel.org/all/95b6015cd5f6fcce535982118543d47504ed609f.1742225817.git.mazziesaccount@gmail.com/ (local)

All dependencies should be in net-next now.

Compile tested only!
Thanks for resending.

Reviewed-by: Simon Horman <horms@kernel.org>

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help