diff options
author | Brian Masney <masneyb@onstation.org> | 2018-03-21 06:29:04 -0400 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2018-03-24 13:34:09 +0000 |
commit | 85a7d0f7dbbb0f69c8f68dab8eb4a1d7b379cc29 (patch) | |
tree | f5601cf308e1f18bf3912314c2c99bcdd611feb5 | |
parent | 9e4701eaef02e1192faca2d0b3529249522f6253 (diff) | |
download | linux-85a7d0f7dbbb0f69c8f68dab8eb4a1d7b379cc29.tar.bz2 |
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>
-rw-r--r-- | drivers/staging/iio/light/tsl2x7x.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/staging/iio/light/tsl2x7x.c b/drivers/staging/iio/light/tsl2x7x.c index 59921850a226..9c929e273135 100644 --- a/drivers/staging/iio/light/tsl2x7x.c +++ b/drivers/staging/iio/light/tsl2x7x.c @@ -387,10 +387,6 @@ static int tsl2x7x_get_lux(struct iio_dev *indio_dev) buf[i] = ret; } - ret = tsl2x7x_clear_interrupts(chip, TSL2X7X_CMD_ALS_INT_CLR); - if (ret < 0) - goto out_unlock; - /* extract ALS/lux data */ ch0 = le16_to_cpup((const __le16 *)&buf[0]); ch1 = le16_to_cpup((const __le16 *)&buf[2]); |