
16 Dec
2008
16 Dec
'08
6:47 p.m.
On Mon, Dec 15, 2008 at 04:24:26PM -0800, ksi@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