* of_parse_phandle in device_node
@ 2019-07-29 9:20 Nuno Sá
0 siblings, 0 replies; only message in thread
From: Nuno Sá @ 2019-07-29 9:20 UTC (permalink / raw)
To: kernelnewbies
Hi guys,
So I'm working on a driver and on dt parsing i need to get a reference
to device_node using of_parse_phandle. I was trying to see if there is
any equivalent on the fwnode_* api's and i could find nothing...
I use
device_for_each_child_node(dev, child) {
...
}
and then some of my fwnode's need to reference some other ones. Now,
i'm using fwnode's api and using to_of_node() and of_fwnode_handle()
macros to use of_parse_phandle() but i don't really want to mix
device_node with of_node so if there's nothing i guess i will just go
with of_node api's.
So, my question,
Is there any equivalent to of_parse_phandle() in the device_node api's?
Note that i don't have any strong requirement to use device_node
instead of of_node but I now i just got curious...
Regards,
Nuno Sá
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-07-29 9:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-29 9:20 of_parse_phandle in device_node Nuno Sá
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).