Hi, I’m trying to write a demo for i2c on my Colibri iMX6
I followed the instructions here
http://git.toradex.com/cgit/linux-toradex.git/tree/Documentation/i2c/dev-interface?h=toradex_imx_3.14.52_1.1.0_ga
It seemed worked will before I use SMBus commands
res = i2c_smbus_read_word_data(file, register);
if (res < 0) {
/* ERROR HANDLING: i2c transaction failed */
} else {
/* res contains the read word */
}
There is an error saying that cannot find the i2c_smbus_read_word_data() function.
I have included linux/i2c and linux/i2c-dev
What should I do?
Thanks!