]> git.baikalelectronics.ru Git - kernel.git/commit
staging: iio: tsl2583: remove redundant write to the control register in taos_probe()
authorBrian Masney <masneyb@onstation.org>
Sat, 12 Nov 2016 18:19:20 +0000 (13:19 -0500)
committerJonathan Cameron <jic23@kernel.org>
Sun, 13 Nov 2016 13:07:20 +0000 (13:07 +0000)
commite0d1ab398a04ca83467cd8b02adedcac62c4d2b4
tree5b42cb379f26d2174ed17e16ce54c467f0abb062
parent093d1509f5e7dc1e375c7d7837e800c1c41fd370
staging: iio: tsl2583: remove redundant write to the control register in taos_probe()

taos_probe() calls i2c_smbus_write_byte() to select the control
register, however there are no subsequent calls to
i2c_smbus_read_byte(). The write call is unnecessary and is removed by
this patch.

Verified that the driver still functions correctly using a TSL2581
hooked up to a Raspberry Pi 2.

Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/light/tsl2583.c