diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2015-07-25 10:20:31 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-08-01 02:50:34 +0000 |
commit | e94152b7e895b973e1c90a9935d2d1e4a706b55f (patch) | |
tree | 8549fdc94da1fae7b09f0332d923f80b9cb6d667 /driver/accelgyro_bmi160.h | |
parent | 8e9ccd8b0d44b013a6bc27827bec767567ff045a (diff) | |
download | chrome-ec-e94152b7e895b973e1c90a9935d2d1e4a706b55f.tar.gz |
driver: bmi160: Add SPI access support
Add interface to access the sensor using SPI interface.
BRANCH=smaug
TEST=compile and work on new Ryu board
BUG=chrome-os-partner:42304
Change-Id: I987259a7e378de8ada3b3b55b3662e5028ea31b2
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/288515
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'driver/accelgyro_bmi160.h')
-rw-r--r-- | driver/accelgyro_bmi160.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/driver/accelgyro_bmi160.h b/driver/accelgyro_bmi160.h index 83c8a63074..3e39e657ff 100644 --- a/driver/accelgyro_bmi160.h +++ b/driver/accelgyro_bmi160.h @@ -391,8 +391,8 @@ void bmi160_interrupt(enum gpio_signal signal); #ifdef CONFIG_MAG_BMI160_BMM150 /* Functions to access the compass through the accel/gyro. */ -int raw_mag_read8(const int addr, const int reg, int *data_ptr); -int raw_mag_write8(const int addr, const int reg, int data); +int raw_mag_read8(const int addr, const uint8_t reg, int *data_ptr); +int raw_mag_write8(const int addr, const uint8_t reg, int data); #endif |