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)
committerJonathan Cameron <jic23@kernel.org>
Sun, 19 Jul 2015 10:48:10 +0000 (11:48 +0100)
commit40f34b0c75c2a633ba647afec41947d8dd3bc920
treeeb40fd784efe520afbba331bd6e65eec3d673544
parentc13c9da6d86fa9cb6449deb6c71b18ffcf32ae53
iio: light: tcs3414: Fix bug preventing to set integration time

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>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/tcs3414.c