Kernel Newbies archive on
 help / color / Atom feed
* 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...

Nuno Sá

Kernelnewbies mailing list

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

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á

Kernel Newbies archive on

Archives are clonable:
	git clone --mirror kernelnewbies/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kernelnewbies kernelnewbies/ \
	public-inbox-index kernelnewbies

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone public-inbox