]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: accel: iis328dq: fix gain values
authorMarkus Koeniger <markus.koeniger@liebherr.com>
Wed, 7 Jan 2026 15:32:18 +0000 (16:32 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 11 Jan 2026 12:00:08 +0000 (12:00 +0000)
commitb8f15d1df2e73322e2112de21a4a7f3553c7fb60
tree7827628eda89894ad5302e0a57e63263351e315c
parent9910159f06590c17df4fbddedaabb4c0201cc4cb
iio: accel: iis328dq: fix gain values

The sensors IIS328DQ and H3LIS331DL share one configuration but
H3LIS331DL has different gain parameters, configs therefore
need to be split up.
The gain parameters for the IIS328DQ are 0.98, 1.95 and 3.91,
depending on the selected measurement range.

See sensor manuals, chapter 2.1 "mechanical characteristics",
parameter "Sensitivity".

Datasheet: https://www.st.com/resource/en/datasheet/iis328dq.pdf
Datasheet: https://www.st.com/resource/en/datasheet/h3lis331dl.pdf
Fixes: 46e33707fe95 ("iio: accel: add support for IIS328DQ variant")
Reviewed-by: Dimitri Fedrau <dimitri.fedrau@liebherr.com>
Signed-off-by: Markus Koeniger <markus.koeniger@liebherr.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/st_accel_core.c