aboutsummaryrefslogtreecommitdiff
path: root/drivers/iio/health
diff options
context:
space:
mode:
authorMatt Ranostay <matt@ranostay.consulting>2017-01-16 18:04:18 -0800
committerJonathan Cameron <jic23@kernel.org>2017-01-21 14:16:20 +0000
commit828f84ee8f84710ea1818b3565add268bcb824c8 (patch)
tree54d1204a2bb545f233702ad69d10afc1e8fef398 /drivers/iio/health
parent802ecfc113df1e15af1d028427cbbe785ae9cc4a (diff)
iio: health: max30100: fixed parenthesis around FIFO count check
FIFO was being read every sample after the "almost full" state was reached. This was due to an incorrect placement of the parenthesis in the while condition check. Note - the fixes tag is not actually correct, but the fix in this patch would also be needed for it to function correctly so we'll go with that one. Backports should pick up both. Signed-off-by: Matt Ranostay <matt@ranostay.consulting> Fixes: b74fccad7 ("iio: health: max30100: correct FIFO check condition") Cc: Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/health')
-rw-r--r--drivers/iio/health/max30100.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/health/max30100.c b/drivers/iio/health/max30100.c
index 90ab8a2d2846..183c14329d6e 100644
--- a/drivers/iio/health/max30100.c
+++ b/drivers/iio/health/max30100.c
@@ -238,7 +238,7 @@ static irqreturn_t max30100_interrupt_handler(int irq, void *private)
mutex_lock(&data->lock);
- while (cnt || (cnt = max30100_fifo_count(data) > 0)) {
+ while (cnt || (cnt = max30100_fifo_count(data)) > 0) {
ret = max30100_read_measurement(data);
if (ret)
break;