summaryrefslogtreecommitdiff
path: root/driver/accel_kionix.h
diff options
context:
space:
mode:
Diffstat (limited to 'driver/accel_kionix.h')
-rw-r--r--driver/accel_kionix.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/driver/accel_kionix.h b/driver/accel_kionix.h
index 79d6374917..b6dfa08b48 100644
--- a/driver/accel_kionix.h
+++ b/driver/accel_kionix.h
@@ -9,6 +9,7 @@
#define __CROS_EC_ACCEL_KIONIX_H
#include "common.h"
+#include "accelgyro.h"
#include "driver/accel_kx022.h"
#include "driver/accel_kxcj9.h"
@@ -22,11 +23,7 @@ struct accel_param_pair {
};
struct kionix_accel_data {
- /* Note, the following are indicies into their respective tables. */
- /* Current range of accelerometer. */
- int sensor_range;
- /* Current output data rate of accelerometer. */
- int sensor_datarate;
+ struct accelgyro_saved_data_t base;
/* Current resolution of accelerometer. */
int sensor_resolution;
int16_t offset[3];