aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/basic/docproc.c
diff options
context:
space:
mode:
authorMario Tesi <[email protected]>2025-10-15 16:16:19 +0000
committerJonathan Cameron <[email protected]>2025-10-27 13:29:12 +0000
commit8abbf45fcda028c2c05ba38eb14ede9fa9e7341b (patch)
treedad74c2d8d6609f60456b56f5786f0d4552e2857 /scripts/basic/docproc.c
parentiio: humditiy: hdc3020: fix units for thresholds and hysteresis (diff)
downloadkernel-8abbf45fcda028c2c05ba38eb14ede9fa9e7341b.tar.gz
kernel-8abbf45fcda028c2c05ba38eb14ede9fa9e7341b.zip
iio: st_lsm6dsx: Fixed calibrated timestamp calculation
The calibrated timestamp is calculated from the nominal value using the formula: ts_gain[ns] ≈ ts_sensitivity - (ts_trim_coeff * val) / 1000. The values of ts_sensitivity and ts_trim_coeff are not the same for all devices, so it is necessary to differentiate them based on the part name. For the correct values please consult the relevant AN. Fixes: cb3b6b8e1bc0 ("iio: imu: st_lsm6dsx: add odr calibration feature") Signed-off-by: Mario Tesi <[email protected]> Acked-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'scripts/basic/docproc.c')
0 files changed, 0 insertions, 0 deletions