Thread (11 messages) flat view 11 messages, 3 authors, 2011-12-01

Re: [PATCH] i2c-mpc: use the cell-index property to enumerate the I2C adapters

From: Scott Wood <hidden>
Date: 2011-12-01 22:05:50

On 12/01/2011 03:59 PM, Timur Tabi wrote:
Scott Wood wrote:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help