Topic: Regarding i2c

Hi iam using an i2c driver .
The kernel says that the i2c has allready been implemented.

From the user space i tried to open the device /dev/i2c and tried to write and read the data from the register.
Iam able to do it and have achieved it.

But in the kernel they have exported some api's called i2c_ssi_read ,i2c_ssi_write.

So for one my module i need to use this api's within the kernel.

I tried to write the data into one reg and parallelly read from the same register.

But surpisingly my read data is not the same which i have written during write.

In the doc they say's that the above functions is used for reading and writing the data from the i2c slave and they also mention that
"Driver needs to be open first." what does it mean.

Any help in this will be much needful to me.

Waiting for your reply.

Regards,
MMK.