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:
parent
e4288acd27
commit
86b60c34af
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue