]> git.baikalelectronics.ru Git - kernel.git/commit
staging: iio: tsl2x7x: remove tsl2x7x_i2c_read()
authorBrian Masney <masneyb@onstation.org>
Thu, 6 Jul 2017 22:56:21 +0000 (18:56 -0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 9 Jul 2017 17:27:07 +0000 (18:27 +0100)
commit7b78265285e75ac6ac1b3bcfd97ee2f4ea785f42
tree73538bd096eb3dec1732740a4e905ca445b94702
parent31237e7ff971862ad9ce38324eca960a09e02972
staging: iio: tsl2x7x: remove tsl2x7x_i2c_read()

tsl2x7x_i2c_read() would call i2c_smbus_write_byte() and
i2c_smbus_read_byte(). These two i2c functions can be replaced with a
single call to i2c_smbus_read_byte_data(). This patch removes the
tsl2x7x_i2c_read() function and replaces all occurrences with a call to
i2c_smbus_read_byte_data().

Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/light/tsl2x7x.c