]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
iio: health: max30100: fixed parenthesis around FIFO count check
authorMatt Ranostay <matt@ranostay.consulting>
Tue, 17 Jan 2017 02:04:18 +0000 (18:04 -0800)
committerJonathan Cameron <jic23@kernel.org>
Sat, 21 Jan 2017 14:16:20 +0000 (14:16 +0000)
commit828f84ee8f84710ea1818b3565add268bcb824c8
tree54d1204a2bb545f233702ad69d10afc1e8fef398
parent802ecfc113df1e15af1d028427cbbe785ae9cc4a
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>
drivers/iio/health/max30100.c