On Wed, 02 Jun 2010 13:29:36 +0200, Richard Röjfors wrote: > On 06/02/2010 01:04 PM, Jean Delvare wrote: > > Richard, look at drivers/i2c/busses/i2c-i801.c, function i801_probe(): > > you'll see an example of per-platform I2C device instantiation on x86. > > I'm not claiming it is elegant, but it works. > > The "problem" I see is that the CPU and the chipset + I2C chip will be populated on several > different boards. It would mean that the I2C bus driver would need knowledge of all the boards where > it is used. And the bus driver itself can not really detect which board it's running on. > > That is why I kept the I2C device setup in a separate driver. So each board would have a separate > "setup" driver. Isn't that the most clean solution right now? I have to admit I don't clearly understand what you are doing. It should become clearer when I see your code. -- Jean Delvare -- To unsubscribe from this list: send the line "unsubscribe linux-i2c" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html