]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: ad9467: include two's complement in default mode
authorTomas Melin <tomas.melin@vaisala.com>
Wed, 14 Jan 2026 10:45:50 +0000 (10:45 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 16 Jan 2026 18:38:24 +0000 (18:38 +0000)
commitbac5e3d20c45392120c4298c2f66fc4387776b80
tree54bbceced8f0bf914803b0f6a01876e1275e434a
parent0b6a86a049f558bf2496c91b1259e1dc34aed938
iio: adc: ad9467: include two's complement in default mode

All supported drivers currently implicitly use two's complement mode.
Make this clear by declaring two's complement in the default
output mode. Calibration mode uses offset binary, so change the output
mode only when running the calibration or other test mode.

Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: Tomas Melin <tomas.melin@vaisala.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad9467.c