staging: iio: tsl2x7x: simplify tsl2x7x_clear_interrupts function
authorBrian Masney <masneyb@onstation.org>
Sat, 21 Apr 2018 00:41:44 +0000 (20:41 -0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 28 Apr 2018 15:17:59 +0000 (16:17 +0100)
commitd8e24a31cc537f77b56ad21aa048078783907e22
tree7f1246d55d2cc6a95e38617ade8734258633e73d
parent3605dfb8510c52b3b2b5e0390cba29d54847a7b7
staging: iio: tsl2x7x: simplify tsl2x7x_clear_interrupts function

tsl2x7x_clear_interrupts() takes a reg argument but there are only
two callers to this function and both callers pass the same value.
Since this function was introduced, interrupts are now working
properly for this driver, and several unnecessary calls to
tsl2x7x_clear_interrupts() were removed. This patch removes the
tsl2x7x_clear_interrupts() function and replaces the two callers
with the i2c_smbus_write_byte() call instead.

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