diff options
| author | 2025-06-18 15:22:02 +0300 | |
|---|---|---|
| committer | 2025-06-19 15:36:21 -0700 | |
| commit | 64f37cd57d7a32e3a768870d12bec81bec426419 (patch) | |
| tree | c8b5605f2e1b50a904805216288f193f642a6c1b /include/uapi/linux/android/ssh:/git@git.zx2c4.com | |
| parent | Merge branch 'net-fec-general-vlan-cleanups' (diff) | |
net: gianfar: Use device_get_named_child_node_count()
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>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/3a33988fc042588cb00a0bfc5ad64e749cb0eb1f.1750248902.git.mazziesaccount@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/uapi/linux/android/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
