staging: iio: tsl2x7x: add common function for clearing interrupts
authorBrian Masney <masneyb@onstation.org>
Sun, 4 Mar 2018 01:49:32 +0000 (20:49 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 10 Mar 2018 14:26:46 +0000 (14:26 +0000)
commiteac15d8ded8f23a7cda681e2b2c7b86cf8535688
treedce66e6b7f9149a31808437d4c1446e464293720
parenta4a214143ef899a5eb46707f3049f38134d63ccd
staging: iio: tsl2x7x: add common function for clearing interrupts

There were three places where the same chunk of code was used to clear
interrupts. This patch creates a common function
tsl2x7x_clear_interrupts() to reduce duplicate code.

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