From: Scott Wood <scottwood@freescale.com>
To: Timur Tabi <timur@freescale.com>
Cc: linuxppc-dev@ozlabs.org, kumar.gala@freescale.com
Subject: Re: [PATCH] i2c-mpc: use the cell-index property to enumerate the I2C adapters
Date: Thu, 1 Dec 2011 16:05:44 -0600 [thread overview]
Message-ID: <4ED7FA38.6030606@freescale.com> (raw)
In-Reply-To: <4ED7F8CE.10801@freescale.com>
On 12/01/2011 03:59 PM, Timur Tabi wrote:
> Scott Wood wrote:
>> Ideally we would have a field in struct device_node that points to
>> struct device.
>
> I don't think there's a single place in the code where the connection
> between the device and device_node is made. In fact, I think
> dev->of_node needs to be manually initialized by the driver during
> the OF probe.
The i2c core does this.
Does of_find_i2c_device_by_node() do what you want?
-Scott
next prev parent reply other threads:[~2011-12-01 22:05 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-01 17:33 [PATCH] i2c-mpc: use the cell-index property to enumerate the I2C adapters Timur Tabi
2011-12-01 18:41 ` Scott Wood
2011-12-01 20:54 ` Timur Tabi
2011-12-01 21:29 ` Scott Wood
2011-12-01 21:46 ` Timur Tabi
2011-12-01 21:52 ` Scott Wood
2011-12-01 21:55 ` Grant Likely
2011-12-01 21:59 ` Timur Tabi
2011-12-01 21:59 ` Timur Tabi
2011-12-01 22:05 ` Scott Wood [this message]
2011-12-01 22:10 ` Timur Tabi
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=4ED7FA38.6030606@freescale.com \
--to=scottwood@freescale.com \
--cc=kumar.gala@freescale.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=timur@freescale.com \
/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).