Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: imu: st_lsm6dsx: Fix measurement unit for odr struct member

The `odr` field in struct st_lsm6dsx_sensor contains a data rate
value expressed in mHz, not in Hz.

Fixes: f8710f0357bc3 ("iio: imu: st_lsm6dsx: express odr in mHZ")
Signed-off-by: Francesco Lavra <flavra@baylibre.com>
Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Francesco Lavra and committed by
Jonathan Cameron
c6d702f2 00393004

+1 -1
+1 -1
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h
··· 365 365 * @id: Sensor identifier. 366 366 * @hw: Pointer to instance of struct st_lsm6dsx_hw. 367 367 * @gain: Configured sensor sensitivity. 368 - * @odr: Output data rate of the sensor [Hz]. 368 + * @odr: Output data rate of the sensor [mHz]. 369 369 * @samples_to_discard: Number of samples to discard for filters settling time. 370 370 * @watermark: Sensor watermark level. 371 371 * @decimator: Sensor decimation factor.