[PATCH 2/3] i2c: add i2cdev driver

Sascha Hauer s.hauer at pengutronix.de
Wed May 19 08:21:34 EDT 2010


On Wed, May 19, 2010 at 01:01:24PM +0200, Sascha Hauer wrote:
> On Tue, May 18, 2010 at 11:26:47AM +0200, Eric Bénard wrote:
> > this driver is needed to introduce i2c commands
> 
> This approach limits the i2cdev support to exactly one bus which is not
> good. What we can do here is:
> 
> - collect all available adapters in a list in drivers/i2c/i2c.c
> - implement i2c_get_adapter(int busnum) to get an adapter from its
>   busnum

For your convenience, the following patch should do it (untested
currently)




More information about the barebox mailing list