summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2016-10-28 14:34:23 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-10-28 21:06:51 -0700
commitf0adf18c9140450e3db4368b5175ffaf6e0f7bbd (patch)
tree1c2d272ed2cbe2b8d88d00bfbfa5a2d569ca4475
parent690873bc757176e8c1d6ffae43226660a32a08c3 (diff)
downloadchrome-ec-f0adf18c9140450e3db4368b5175ffaf6e0f7bbd.tar.gz
driver: bma2x2/kionix remove unused fields
Remove fields that are not used anymore. BRANCH=gru BUG=none TEST=make buildall Change-Id: If4128a5db05e14314bba6c1d367774f098854ac5 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/404913 Reviewed-by: Shawn N <shawnn@chromium.org>
-rw-r--r--board/kevin/board.c4
-rw-r--r--driver/accel_bma2x2.h4
-rw-r--r--driver/accel_kionix.h2
3 files changed, 1 insertions, 9 deletions
diff --git a/board/kevin/board.c b/board/kevin/board.c
index fa91ca462c..ff6db7a887 100644
--- a/board/kevin/board.c
+++ b/board/kevin/board.c
@@ -467,9 +467,7 @@ static struct mutex g_lid_mutex;
#ifdef BOARD_KEVIN
/* BMA255 private data */
-struct bma2x2_accel_data g_bma255_data = {
- .variant = BMA255,
-};
+struct bma2x2_accel_data g_bma255_data;
/* Matrix to rotate accelrator into standard reference frame */
const matrix_3x3_t base_standard_ref = {
diff --git a/driver/accel_bma2x2.h b/driver/accel_bma2x2.h
index f5facc90e9..5a37152e99 100644
--- a/driver/accel_bma2x2.h
+++ b/driver/accel_bma2x2.h
@@ -14,8 +14,6 @@ enum bma2x2_accel {
};
struct bma2x2_accel_data {
- /* Variant of Bosch Accelerometer. */
- uint8_t variant;
/* Note, the following are indicies into their respective tables. */
/* Current range of accelerometer. */
int sensor_range;
@@ -23,8 +21,6 @@ struct bma2x2_accel_data {
int sensor_datarate;
/* Current resolution of accelerometer. */
int sensor_resolution;
- /* Device address. */
- int accel_addr;
int16_t offset[3];
};
diff --git a/driver/accel_kionix.h b/driver/accel_kionix.h
index 4038a498c6..aeac666039 100644
--- a/driver/accel_kionix.h
+++ b/driver/accel_kionix.h
@@ -29,8 +29,6 @@ struct kionix_accel_data {
int sensor_datarate;
/* Current resolution of accelerometer. */
int sensor_resolution;
- /* Device address. */
- int accel_addr;
int16_t offset[3];
};