提交 828f84ee 编写于 作者: M Matt Ranostay 提交者: Jonathan Cameron

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: NMatt Ranostay <matt@ranostay.consulting>
Fixes: b74fccad ("iio: health: max30100: correct FIFO check condition")
Cc: Stable@vger.kernel.org>
Signed-off-by: NJonathan Cameron <jic23@kernel.org>
上级 802ecfc1
...@@ -238,7 +238,7 @@ static irqreturn_t max30100_interrupt_handler(int irq, void *private) ...@@ -238,7 +238,7 @@ static irqreturn_t max30100_interrupt_handler(int irq, void *private)
mutex_lock(&data->lock); 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); ret = max30100_read_measurement(data);
if (ret) if (ret)
break; break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册