• Lars-Peter Clausen's avatar
    staging:iio:ad7192: Report channel offset · 58cdff6e
    Lars-Peter Clausen authored
    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: default avatarLars-Peter Clausen <lars@metafoo.de>
    58cdff6e
ad7192.c 28.4 KB