|
@@ -67,8 +67,10 @@ the device supports them. Both are illustrated below.
|
|
/* res contains the read word */
|
|
/* res contains the read word */
|
|
}
|
|
}
|
|
|
|
|
|
- /* Using I2C Write, equivalent of
|
|
|
|
- i2c_smbus_write_word_data(file, reg, 0x6543) */
|
|
|
|
|
|
+ /*
|
|
|
|
+ * Using I2C Write, equivalent of
|
|
|
|
+ * i2c_smbus_write_word_data(file, reg, 0x6543)
|
|
|
|
+ */
|
|
buf[0] = reg;
|
|
buf[0] = reg;
|
|
buf[1] = 0x43;
|
|
buf[1] = 0x43;
|
|
buf[2] = 0x65;
|
|
buf[2] = 0x65;
|