Thread (53 messages) 53 messages, 7 authors, 2025-03-04

Re: [PATCH v4 02/10] property: Add device_get_child_node_count_named()

From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date: 2025-02-25 14:00:10
Also in: linux-acpi, linux-devicetree, linux-iio, linux-renesas-soc, linux-sunxi, lkml

On Tue, Feb 25, 2025 at 03:29:17PM +0200, Matti Vaittinen wrote:
On 25/02/2025 12:39, Andy Shevchenko wrote:
quoted
On Tue, Feb 25, 2025 at 12:29:31PM +0200, Matti Vaittinen wrote:
quoted
On 25/02/2025 12:21, Andy Shevchenko wrote:
quoted
On Tue, Feb 25, 2025 at 11:40:16AM +0200, Heikki Krogerus wrote:
...
quoted
quoted
quoted
quoted
I did not check how many users are you proposing for this, but if
there's only one, then IMO this should not be a global function yet.
It just feels to special case to me. But let's see what the others
think.
The problem is that if somebody hides it, we might potentially see
a duplication in the future. So I _slightly_ prefer to publish and
then drop that after a few cycles if no users appear.
After taking a very quick grep I spotted one other existing place where we
might be able to do direct conversion to use this function.

drivers/net/ethernet/freescale/gianfar.c

That'd be 2 users.
I haven't checked myself, I believe your judgement,
I took a better look and you obviously shouldn't believe :) The gianfar used
of_node instead of the fwnode. So, it'd be a single caller at starters.
...which is the same as dev_of_node(), which means that you can use your
function there.

-- 
With Best Regards,
Andy Shevchenko


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