From: "Nuno Sá" <noname.nuno@gmail.com>
To: kernelnewbies <kernelnewbies@kernelnewbies.org>
Subject: of_parse_phandle in device_node
Date: Mon, 29 Jul 2019 11:20:29 +0200 [thread overview]
Message-ID: <e4d891d9fe474bcfe877f3a0e364ab189872ed2e.camel@gmail.com> (raw)
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
reply other threads:[~2019-07-29 9:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e4d891d9fe474bcfe877f3a0e364ab189872ed2e.camel@gmail.com \
--to=noname.nuno@gmail.com \
--cc=kernelnewbies@kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).