iio: light: apds9960: correct FIFO check condition
authorMatt Ranostay <mranostay@gmail.com>
Fri, 18 Mar 2016 03:48:07 +0000 (20:48 -0700)
committerJonathan Cameron <jic23@kernel.org>
Sun, 20 Mar 2016 10:33:33 +0000 (10:33 +0000)
commit655048a0b98bc6288ce87cb95a18bf4cada6c1a9
tree6e9f3565de467144a6ebd56548521ef31251a50d
parent5c913eb92eb1143806dd295cd2f29e48c00c93fd
iio: light: apds9960: correct FIFO check condition

Correct issue that the last entry in FIFO was being read twice due
to an incorrect decrement of entry count variable before condition
check.

Signed-off-by: Matt Ranostay <mranostay@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/apds9960.c
This page took 0.025896 seconds and 5 git commands to generate.