commit | c62b89c713ebd5e4a67c9b9229591adab8953a3c | [log] [tgz] |
---|---|---|
author | Lars-Peter Clausen <lars@metafoo.de> | Thu Jan 31 14:27:00 2013 +0000 |
committer | Jonathan Cameron <jic23@kernel.org> | Sat Feb 02 09:20:56 2013 +0000 |
tree | 82c993afa7364bd28184948dc24f16e2c51bb826 | |
parent | 1a87e4fba63cd82d74f23b6e0b75ad6b01b15774 [diff] |
staging:iio:adxrs450: Perform sign extension for the calibbias register The calibbias (DNC) register contains a 10-bit twos complement value. Perform a proper sign extension when reading the register, otherwise negative will incorrectly be displayed as large positive values. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>