drivers/sensor: lis2dw12: Remove odr values from Kconfig

Remove all odr values from Kconfig and always init it
at 12.5Hz. It is responsibility of application to set
the rate to a different value using SENSOR_ATTR_SAMPLING_FREQUENCY.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
This commit is contained in:
Armando Visconti 2021-05-31 17:20:41 +02:00 committed by Anas Nashif
commit 77b74f1b85
3 changed files with 3 additions and 59 deletions

View file

@ -292,8 +292,9 @@ static int lis2dw12_init(const struct device *dev)
return -EIO;
}
/* set default odr and full scale for acc */
if (lis2dw12_data_rate_set(lis2dw12->ctx, LIS2DW12_DEFAULT_ODR) < 0) {
/* set default odr to 12.5Hz acc */
if (lis2dw12_set_odr(dev, 12) < 0) {
LOG_ERR("odr init error (12.5 Hz)");
return -EIO;
}