]> Pileus Git - ~andy/linux/commit
staging:iio:light:tsl2563 channel spec buglet / always reading same adc.
authorJonathan Cameron <jic23@kernel.org>
Fri, 13 Apr 2012 09:24:18 +0000 (10:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Apr 2012 17:59:38 +0000 (10:59 -0700)
commitfe3f8f87edf99d9d5122f890208538e0afabd8ce
tree1f86eb5b458fcccb2960bef8d5d0dc69e352d67b
parent91ceae374e1ece88c8f575259ee0ad7da28ae8ab
staging:iio:light:tsl2563 channel spec buglet / always reading same adc.

The IIO_LIGHT channel was not marked as being a processed_val despite
clearly being in lux.

The IIO_INTENSITY channel reads were dependent on channel and that isn't
specified for either adc (as they now use modifiers).  Hence use the
modifier instead.

Reported-by: Jon Brenner <jbrenner@taosinc.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/light/tsl2563.c