]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: adis16201: Correct inclinometer channel resolution
authorGabriel Shahrouzi <gshahrouzi@gmail.com>
Mon, 21 Apr 2025 13:15:39 +0000 (09:15 -0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 21 Apr 2025 13:58:31 +0000 (14:58 +0100)
commit609bc31eca06c7408e6860d8b46311ebe45c1fef
tree0ebd924b50608d4a8117478e0309a495d95e06a3
parentf083f8a21cc785ebe3a33f756a3fa3660611f8db
iio: adis16201: Correct inclinometer channel resolution

The inclinometer channels were previously defined with 14 realbits.
However, the ADIS16201 datasheet states the resolution for these output
channels is 12 bits (Page 14, text description; Page 15, table 7).

Correct the realbits value to 12 to accurately reflect the hardware.

Fixes: f7fe1d1dd5a5 ("staging: iio: new adis16201 driver")
Cc: stable@vger.kernel.org
Signed-off-by: Gabriel Shahrouzi <gshahrouzi@gmail.com>
Reviewed-by: Marcelo Schmitt <marcelo.schmitt1@gmail.com>
Link: https://patch.msgid.link/20250421131539.912966-1-gshahrouzi@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/adis16201.c