diff options
author | Kevin K Wong <kevin.k.wong@intel.com> | 2016-03-30 16:42:40 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-03-31 21:35:56 -0700 |
commit | 6711629163f23a98099d8c6d37f6cdb1ef56ca52 (patch) | |
tree | 9529c236985d9ad64d23c4d0b1b8328d1be81b8f /test | |
parent | 59c03bc4c644b0f0bbf3c6807a97755b7509b319 (diff) | |
download | chrome-ec-6711629163f23a98099d8c6d37f6cdb1ef56ca52.tar.gz |
sensor: update sensor driver to use I2C port from motion_sensor_t
this allow motion sensor devices to be locate on different I2C port
BUG=none
BRANCH=none
TEST=make buildall
Change-Id: Ia7ba2f5729ebb19561768ec87fdb267e79aafb6a
Signed-off-by: Kevin K Wong <kevin.k.wong@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/334269
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/motion_lid.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/motion_lid.c b/test/motion_lid.c index 224b12a26b..81ab132300 100644 --- a/test/motion_lid.c +++ b/test/motion_lid.c @@ -117,6 +117,7 @@ struct motion_sensor_t motion_sensors[] = { .drv = &test_motion_sense, .mutex = NULL, .drv_data = NULL, + .port = 0, .addr = 0, .rot_standard_ref = &base_standard_ref, .default_range = 2, /* g, enough for laptop. */ @@ -150,6 +151,7 @@ struct motion_sensor_t motion_sensors[] = { .drv = &test_motion_sense, .mutex = NULL, .drv_data = NULL, + .port = 0, .addr = 0, .rot_standard_ref = &lid_standard_ref, .default_range = 2, /* g, enough for laptop. */ |