|
How to write a i2c chip driver which handles different addresses
I need to write a chip driver which shud handle different addresses.
The chip has diff adress like 1011 A2 A1 A0 RW.
When i write 1011 011,it will access the IO registers.
When i write 1011 100,it will access the IO registers which have diff functionality.
For that can i use normal_i2c[]={5B,5C,I2C_CLIENT_END}.
But when i need to test for particular address how to do the testing in the kernel space?
|