drivers: sensor: lsm6dsl: remove unused accel_fs and gyro_{fs,freq}

Those are not used, so drop them from instance data.

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
This commit is contained in:
Marcin Niestroj 2023-05-10 11:54:24 +02:00 committed by Maureen Helm
parent e4288acd27
commit 86b60c34af
2 changed files with 0 additions and 6 deletions

View file

@ -115,8 +115,6 @@ static int lsm6dsl_accel_set_fs_raw(const struct device *dev, uint8_t fs)
return -EIO;
}
data->accel_fs = fs;
return 0;
}
@ -748,7 +746,6 @@ static int lsm6dsl_init_chip(const struct device *dev)
}
data->gyro_sensitivity = LSM6DSL_DEFAULT_GYRO_SENSITIVITY;
data->gyro_freq = lsm6dsl_odr_to_freq_val(CONFIG_LSM6DSL_GYRO_ODR);
if (lsm6dsl_gyro_set_odr_raw(dev, CONFIG_LSM6DSL_GYRO_ODR) < 0) {
LOG_DBG("failed to set gyroscope sampling rate");
return -EIO;

View file

@ -667,9 +667,6 @@ struct lsm6dsl_data {
#endif
const struct lsm6dsl_transfer_function *hw_tf;
uint16_t accel_freq;
uint8_t accel_fs;
uint16_t gyro_freq;
uint8_t gyro_fs;
#ifdef CONFIG_LSM6DSL_TRIGGER
const struct device *dev;