]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7b2c295b6750d6b382842b7473521a50f5ee9ed2
treedce66e6b7f9149a31808437d4c1446e464293720
parent4c028a9824bf298132ce37e994d11d15abce3b31
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