Commit 6d03811d authored by Gustavo Silva's avatar Gustavo Silva Committed by Jonathan Cameron
Browse files

iio: imu: bmi270: fix initial sampling frequency configuration



In the bmi270_configure_imu() function, the accelerometer and gyroscope
configuration registers are incorrectly written with the mask
BMI270_PWR_CONF_ADV_PWR_SAVE_MSK, which is unrelated to these registers.

As a result, the accelerometer's sampling frequency is set to 200 Hz
instead of the intended 100 Hz.

Remove the mask to ensure the correct bits are set in the configuration
registers.

Fixes: 3ea51548 ("iio: imu: Add i2c driver for bmi270 imu")
Signed-off-by: default avatarGustavo Silva <gustavograzs@gmail.com>
Reviewed-by: default avatarAlex Lanzano <lanzano.alex@gmail.com>
Link: https://patch.msgid.link/20250304-bmi270-odr-fix-v1-1-384dbcd699fb@gmail.com


Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 0af2f6be
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment