Skip to content

Commit 828f84e

Browse files
Matt Ranostayjic23
authored andcommitted
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 <[email protected]> Fixes: b74fcca ("iio: health: max30100: correct FIFO check condition") Cc: [email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 802ecfc commit 828f84e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iio/health/max30100.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ static irqreturn_t max30100_interrupt_handler(int irq, void *private)
238238

239239
mutex_lock(&data->lock);
240240

241-
while (cnt || (cnt = max30100_fifo_count(data) > 0)) {
241+
while (cnt || (cnt = max30100_fifo_count(data)) > 0) {
242242
ret = max30100_read_measurement(data);
243243
if (ret)
244244
break;

0 commit comments

Comments
 (0)