]> 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:20:36 +0000 (08:20 +0200)
commite5755bf22c218d2142f02f3be25416c10ddde5c3
tree45f88f3f645c07045d450b1c6cebf54e43bba4cc
parent8f9c524b916390393b232b28b0115f0e3dca0c85
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