iio: light: tcs3414: Fix bug preventing to set integration time
authorPeter Meerwald <pmeerw@pmeerw.net>
Sun, 14 Jun 2015 21:09:35 +0000 (23:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Aug 2015 16:29:01 +0000 (09:29 -0700)
commitcfdbaedd8da7b45b0043b709f688663edfab49f2
tree2b2a4e9d82807da438ef3cd15eb06126c99e9410
parent5354bc06756b59dc89d6ce24658e747e6753a926
iio: light: tcs3414: Fix bug preventing to set integration time

commit 33361e5678a541f82f29f85467d589e7bf8da76b upstream.

the millisecond values in tcs3414_times should be checked against
val2, not val, which is always zero.

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Reported-by: Stephan Kleisinger <stephan.kleisinger@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/light/tcs3414.c