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 /board/strago/board.c | |
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 'board/strago/board.c')
-rw-r--r-- | board/strago/board.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/board/strago/board.c b/board/strago/board.c index 6f49040a9f..fb40fb9a18 100644 --- a/board/strago/board.c +++ b/board/strago/board.c @@ -220,6 +220,7 @@ struct motion_sensor_t motion_sensors[] = { .drv = &kionix_accel_drv, .mutex = &g_kxcj9_mutex[0], .drv_data = &g_kxcj9_data[0], + .port = I2C_PORT_ACCEL, .addr = KXCJ9_ADDR1, .rot_standard_ref = &base_standard_ref, .default_range = 2, /* g, enough for laptop. */ @@ -254,6 +255,7 @@ struct motion_sensor_t motion_sensors[] = { .drv = &kionix_accel_drv, .mutex = &g_kxcj9_mutex[1], .drv_data = &g_kxcj9_data[1], + .port = I2C_PORT_ACCEL, .addr = KXCJ9_ADDR0, .rot_standard_ref = &lid_standard_ref, .default_range = 2, /* g, enough for laptop. */ |