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)
commitd2f46f56b8ecd32ab0734b4a6d8a14de88d9894f
tree73538bd096eb3dec1732740a4e905ca445b94702
parent8ea6134c234ee142f6be0361afd6369d13440f72
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