staging: iio: tsl2x7x: no need to clear interrupt flag when getting lux
authorBrian Masney <masneyb@onstation.org>
Wed, 21 Mar 2018 10:29:04 +0000 (06:29 -0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 24 Mar 2018 13:34:09 +0000 (13:34 +0000)
commit85a7d0f7dbbb0f69c8f68dab8eb4a1d7b379cc29
treef5601cf308e1f18bf3912314c2c99bcdd611feb5
parent9e4701eaef02e1192faca2d0b3529249522f6253
staging: iio: tsl2x7x: no need to clear interrupt flag when getting lux

tsl2x7x_get_lux() does not need to clear the interrupt flag when
querying the ALS. The interrupt flag is cleared in
tsl2x7x_event_handler(). This patches removes the unnecessary code.

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