summaryrefslogtreecommitdiff
path: root/drivers/macintosh
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2012-08-10 20:36:00 +0400
committerJonathan Cameron <jic23@kernel.org>2012-08-16 23:24:34 +0400
commit680f8ea0e85c5c3a7283be99435d6461e8725348 (patch)
treef7a1ec3672c23a0d21cd36d82995643566d7bb19 /drivers/macintosh
parente83539092c390c95e30b0d9e434709f195340f80 (diff)
downloadlinux-680f8ea0e85c5c3a7283be99435d6461e8725348.tar.xz
staging:iio:ad7793: Report channel offset
In bipolar mode there is a a binary offset of 2**(N-1) (with N being the number of bits) on the reported value. Currently this value is subtracted when doing a manual read. While this works for manual channel readings it does not work for buffered mode. So report the offset in the channels offset property, which will work in both modes. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/macintosh')
0 files changed, 0 insertions, 0 deletions