[i2c] How to use an i2c device from different drivers at the same time

Rudolf Marek r.marek at sh.cvut.cz
Sat Aug 19 11:20:49 CEST 2006


Hi Tobias,

The solution depends if the need is for some special board (BSP code) or some
general code.

solution 1)

Export some symbols from the driver, do the locking in existing driver

solution 2) create some class for that and register i2c driver into it.  This
will help you to solve the communication problem in elegant way.

The PCA 9539 may be similar to the 8574... so design of the driver would be easy.

Anyone else some comments?

Regards
Rudolf




More information about the i2c mailing list