From a3a5c90b54670ddc865defc16757f1fef78ca322 Mon Sep 17 00:00:00 2001 From: Gwendal Grignou Date: Sat, 25 Jul 2015 02:26:03 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/288513 Reviewed-by: Vincent Palatin Commit-Queue: David James --- include/motion_sense.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/motion_sense.h') diff --git a/include/motion_sense.h b/include/motion_sense.h index 8233049565..7f0ac57edd 100644 --- a/include/motion_sense.h +++ b/include/motion_sense.h @@ -69,7 +69,8 @@ struct motion_sensor_t { const struct accelgyro_drv *drv; struct mutex *mutex; void *drv_data; - uint8_t i2c_addr; + /* i2c address or SPI slage logic GPIO. */ + uint8_t addr; const matrix_3x3_t *rot_standard_ref; /* Default configuration parameters, RO only */ -- cgit v1.2.1