]> git.baikalelectronics.ru Git - kernel.git/commit
staging:iio:ad7780: Mark channels as unsigned
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 10 Aug 2012 16:36:00 +0000 (17:36 +0100)
committerJonathan Cameron <jic23@kernel.org>
Thu, 16 Aug 2012 19:24:37 +0000 (20:24 +0100)
commitfe1bfc5c7076fc46b5421aeea65906348d4ad6f8
tree0257d956bfdb4ad5afada7a16bde50a46802b6af
parente8d0e46851d58d38a00cfef3edec513a44c78a5e
staging:iio:ad7780: Mark channels as unsigned

The values reported by the AD7780 are unsigned with a binary offset:

0x000000 is negative fullscale
0x800000 is zeroscale
0xffffff is positive fullscale

So mark the channel in the channel spec as unsigned rather than signed.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/ad7780.c