From: Lars-Peter Clausen Date: Fri, 10 Aug 2012 16:36:00 +0000 (+0100) Subject: staging:iio:ad7793: Report channel offset X-Git-Tag: v3.6-rc3~38^2^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=680f8ea0e85c5c3a7283be99435d6461e8725348;p=pandora-kernel.git 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 Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed