[U-Boot] [PATCH v3] i2c: merge all i2c_reg_read() and i2c_reg_write() into inline functions

Scott Wood scottwood at freescale.com
Tue Dec 16 18:47:03 CET 2008


On Mon, Dec 15, 2008 at 04:24:26PM -0800, ksi at koi8.net wrote:
> Then, we could use some kind of array of I2C structures each containing
> pointers to appropriate i2c-{read,write,probe,init}() functions with generic
> i2c functions just calling those pointers using bus number as index into
> that array.

Why not just pass a pointer to the i2c device, rather than an index?

-Scott


More information about the U-Boot mailing list