Re: [PATCH] iio: accel: iis328dq: fix gain values

From: Andy Shevchenko
Date: Sat Dec 27 2025 - 10:27:05 EST


On Mon, Dec 22, 2025 at 03:50:04PM +0100, Markus Koeniger via B4 Relay wrote:
> From: Markus Koeniger <markus.koeniger@xxxxxxxxxxxx>
>
> 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":
> IIS328DQ https://www.st.com/resource/en/datasheet/iis328dq.pdf
> H3LIS331DL https://www.st.com/resource/en/datasheet/h3lis331dl.pdf

You can make them as Datasheet tags:

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

Datasheet: https://www.st.com/resource/en/datasheet/iis328dq.pdf
Datasheet: https://www.st.com/resource/en/datasheet/h3lis331dl.pdf
Fixes: ...
...

> Fixes: 46e33707fe95 ("iio: accel: add support for IIS328DQ variant")
> Reviewed-by: Dimitri Fedrau <dimitri.fedrau@xxxxxxxxxxxx>
> Signed-off-by: Markus Koeniger <markus.koeniger@xxxxxxxxxxxx>

--
With Best Regards,
Andy Shevchenko