Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iio: light: tcs3472: fix ATIME register write
The integration time is controlled by the ATIME register only. However, this register is written by i2c_smbus_write_word_data() in write_raw(). We actually don't need to write a subsequent register. So just use i2c_smbus_write_byte_data() instead. Cc: Peter Meerwald <[email protected]> Cc: Jonathan Cameron <[email protected]> Signed-off-by: Akinobu Mita <[email protected]> Acked-by: Peter Meerwald-Stadler <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
- Loading branch information