diff options
author | Tristan Honscheid <honscheid@google.com> | 2021-11-03 15:22:01 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-11-04 16:53:58 +0000 |
commit | 38761cca590d08a28fb29923a098743a80e47589 (patch) | |
tree | 2fe45f28520251d56b70cc23a8bf4fcc7f2dd618 | |
parent | 21ac915e37dad98a3744e29e86363624e5739ede (diff) | |
download | chrome-ec-38761cca590d08a28fb29923a098743a80e47589.tar.gz |
zephyr: Always enable accelgyro_bmi160 sec_read/write
The declarations for test_bmi_sec_raw_{read|write}8 in the header are
left out when `CONFIG_BMI_SEC_I2C` is disabled, but the function
definitions are always present. Remove the #ifdef from around the
declarations in the header.
BRANCH=None
BUG=b:184856157
TEST=zmake -D configure --test test-drivers
Signed-off-by: Tristan Honscheid <honscheid@google.com>
Change-Id: I4bec7c3a9909eccae8cbffe419a17186ccce969c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3260150
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
-rw-r--r-- | include/driver/accelgyro_bmi160.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/driver/accelgyro_bmi160.h b/include/driver/accelgyro_bmi160.h index d1b5253023..8b050227bc 100644 --- a/include/driver/accelgyro_bmi160.h +++ b/include/driver/accelgyro_bmi160.h @@ -383,13 +383,11 @@ /* Root mean square noise of 100 Hz accelerometer, units: ug */ #define BMI160_ACCEL_RMS_NOISE_100HZ 1300 -#ifdef CONFIG_BMI_SEC_I2C /* Functions to access the secondary device through the accel/gyro. */ int bmi160_sec_raw_read8(const int port, const uint16_t addr_flags, const uint8_t reg, int *data_ptr); int bmi160_sec_raw_write8(const int port, const uint16_t addr_flags, const uint8_t reg, int data); -#endif #if defined(CONFIG_ZEPHYR) && defined(CONFIG_ACCEL_INTERRUPTS) /* |