From 86b60c34af6b0180bbb9e4792ece20de0db433f5 Mon Sep 17 00:00:00 2001 From: Marcin Niestroj Date: Wed, 10 May 2023 11:54:24 +0200 Subject: [PATCH] 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 --- drivers/sensor/lsm6dsl/lsm6dsl.c | 3 --- drivers/sensor/lsm6dsl/lsm6dsl.h | 3 --- 2 files changed, 6 deletions(-) diff --git a/drivers/sensor/lsm6dsl/lsm6dsl.c b/drivers/sensor/lsm6dsl/lsm6dsl.c index c06477e3e6..80a6d657dd 100644 --- a/drivers/sensor/lsm6dsl/lsm6dsl.c +++ b/drivers/sensor/lsm6dsl/lsm6dsl.c @@ -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; diff --git a/drivers/sensor/lsm6dsl/lsm6dsl.h b/drivers/sensor/lsm6dsl/lsm6dsl.h index c938fd9b3c..b44b3c75a5 100644 --- a/drivers/sensor/lsm6dsl/lsm6dsl.h +++ b/drivers/sensor/lsm6dsl/lsm6dsl.h @@ -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;