diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2016-08-18 11:08:53 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2016-11-22 00:00:38 +0000 |
commit | 691c968a8c497b13140673512d61d42dce2342c8 (patch) | |
tree | 171596cf1408abc18e2351ee2beb6e4c20b49d5b | |
parent | 4df4aa952cbff27fd74dc0a9f02dd433ac4a380a (diff) | |
download | chrome-ec-691c968a8c497b13140673512d61d42dce2342c8.tar.gz |
UPSTREAM: motion_lid: Add const around sensor vector.
Accelerometer data is read-only in motion_lid, add const to help the
compiler.
BRANCH=veyron
BUG=b:27849483
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>
(cherry picked from commit 2c9c6581bd1acfb7422726254678763699475054)
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
(cherry picked from commit 0a9d185eed6d7c064f58962e7552537e22251ceb)
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/378329
-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 405d48e621..141b1d79a3 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]; /** |