summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2015-07-25 02:26:03 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-07-30 19:58:01 +0000
commita3a5c90b54670ddc865defc16757f1fef78ca322 (patch)
treee3723836636aa3635cbd0eacb1e0895806dc49ff /test
parent5b71b33aba6cb0108a864cc7000918b8f06b139a (diff)
downloadchrome-ec-a3a5c90b54670ddc865defc16757f1fef78ca322.tar.gz
accel: mechanical changes from i2c_addr to addr
Encode both the I2C address and SPI GPIO CS in addr field. Mechanical change to rename i2c_addr into addr. BRANCH=smaug TEST=compile BUG=chrome-os-partner:42304 Change-Id: I1c7435398deacb27211445afa27a08716d224c06 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/288513 Reviewed-by: Vincent Palatin <vpalatin@chromium.org> Commit-Queue: David James <davidjames@chromium.org>
Diffstat (limited to 'test')
-rw-r--r--test/motion_lid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/motion_lid.c b/test/motion_lid.c
index a3ce4925f1..18c4f64f33 100644
--- a/test/motion_lid.c
+++ b/test/motion_lid.c
@@ -118,7 +118,7 @@ struct motion_sensor_t motion_sensors[] = {
.drv = &test_motion_sense,
.mutex = NULL,
.drv_data = NULL,
- .i2c_addr = 0,
+ .addr = 0,
.rot_standard_ref = &base_standard_ref,
.default_config = {
.odr = 119000,
@@ -134,7 +134,7 @@ struct motion_sensor_t motion_sensors[] = {
.drv = &test_motion_sense,
.mutex = NULL,
.drv_data = NULL,
- .i2c_addr = 0,
+ .addr = 0,
.rot_standard_ref = &lid_standard_ref,
.default_config = {
.odr = 119000,