mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 22:55:11 +07:00
2ccc15036d
This patch allows to avoid a transitory that occurs when a given sensor
has been already enabled (e.g. gyroscope) and the user is configuring
the sample frequency of the other one (e.g. accelerometer).
The transitory lasts until the accelerometer is enabled.
During that time slice the gyroscope ODR is incorrectly modified as well.
At the end of the transitory both sensors work at the right frequency.
Fix it introducing st_lsm6dsx_check_odr() routine to check ODR consistency
in write_raw handler in order to apply frequency configuration just
in st_lsm6dsx_set_odr()
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
st_lsm6dsx_buffer.c | ||
st_lsm6dsx_core.c | ||
st_lsm6dsx_i2c.c | ||
st_lsm6dsx_spi.c | ||
st_lsm6dsx.h |