diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2016-08-18 11:08:53 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-08-24 17:40:56 -0700 |
commit | 2c9c6581bd1acfb7422726254678763699475054 (patch) | |
tree | ca264e72681ffb4bda0be30a84f0d804f88d0d91 | |
parent | 78acb197a0bcded285ad34f1c587b3cfc5801f9b (diff) | |
download | chrome-ec-2c9c6581bd1acfb7422726254678763699475054.tar.gz |
motion_lid: Add const around sensor vector.
Accelerometer data is read-only in motion_lid, add const to help the
compiler.
BRANCH=none
BUG=none
TEST=compile
Change-Id: I487030318b63a2decd4a57cd8ee0d965628a344b
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/372311
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
-rw-r--r-- | common/motion_lid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/motion_lid.c b/common/motion_lid.c index df876563fe..d4cae6be08 100644 --- a/common/motion_lid.c +++ b/common/motion_lid.c @@ -78,9 +78,9 @@ const struct accel_orientation acc_orient = { /* Pointer to constant acceleration orientation data. */ const struct accel_orientation * const p_acc_orient = &acc_orient; -struct motion_sensor_t *accel_base = +const struct motion_sensor_t * const accel_base = &motion_sensors[CONFIG_LID_ANGLE_SENSOR_BASE]; -struct motion_sensor_t *accel_lid = +const struct motion_sensor_t * const accel_lid = &motion_sensors[CONFIG_LID_ANGLE_SENSOR_LID]; /** |