[PATCH v1] Add support for getting device platform data to I2C device
scottwood at freescale.com
Fri Dec 19 04:20:03 EST 2008
Anton Vorontsov wrote:
> On Thu, Dec 18, 2008 at 10:14:11AM +0800, Mingkai Hu wrote:
>> There is no standard way of getting device platform data from
>> dts file to the I2C device when it's probed. This patch adds
>> a function pointer to the of_modalias_table to get such bindings
>> properties into device's platform data.
> Unfortunately this approach leads to inability to make the bindings
True, but I think it's fine for now while a better mechanism is worked
out -- especially for things that are mainly used in embedded situations
where modular builds aren't as necessary.
> And the solution that everybody seem to agree with (SPI driver example):
Hmm, that doesn't seem to allow for any binding mechanism other than
internal and OF, and it seems like it could be done more
straightforwardly by having the modalias point to the OF wrapper, which
then instantiates the core driver.
But the above approach has the distinct advantage of having already been
More information about the Linuxppc-dev