]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: adis16201: Correct inclinometer channel resolution
authorGabriel Shahrouzi <gshahrouzi@gmail.com>
Mon, 21 Apr 2025 13:15:39 +0000 (09:15 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 May 2025 06:24:07 +0000 (08:24 +0200)
commit3413b87a9e17b46beea2f70bfd41c5a376eab4b7
tree876391606350ef095b19a9d5adbca16c47174fa7
parent7748b1b27fbfdf73f1f719eda2afa2f5d719b4e8
iio: adis16201: Correct inclinometer channel resolution

commit 609bc31eca06c7408e6860d8b46311ebe45c1fef upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/accel/adis16201.c