diff options
author | Sue Chen <sue.chen@quanta.corp-partner.google.com> | 2022-02-07 11:13:54 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-03-09 12:19:47 +0000 |
commit | 902a373b9572f55e3a59b0800c9f20ae1b9c0536 (patch) | |
tree | 2f4a3c15a214e0480062d353a7a9e2950e19ed93 | |
parent | c5e21357b7a45b6c729a1f150a3068e9218c6b19 (diff) | |
download | chrome-ec-902a373b9572f55e3a59b0800c9f20ae1b9c0536.tar.gz |
driver: icm42607: rename the register
ICM426XX_REG_DEVICE_CONFIG would be redefined while the project
is using both icm426xx and icm42607 so rename it to
ICM42607_REG_DEVICE_CONFIG.
BUG=b:217971875
BRANCH=zork
TEST=make build=ezkinil
Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com>
Change-Id: Iee5fac247346dde8995580cfa223dcc851357cc8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3442907
Reviewed-by: Keith Short <keithshort@chromium.org>
(cherry picked from commit 11c0ad4a2334595bc249ce98c013986113445aa9)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3512412
Reviewed-by: Isaac Lee <isaaclee@google.com>
Commit-Queue: Isaac Lee <isaaclee@google.com>
-rw-r--r-- | driver/accelgyro_icm42607.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/driver/accelgyro_icm42607.h b/driver/accelgyro_icm42607.h index 7b70b0e71d..7cf4f0953e 100644 --- a/driver/accelgyro_icm42607.h +++ b/driver/accelgyro_icm42607.h @@ -91,9 +91,9 @@ #define ICM42607_REG_MCLK_RDY 0x0000 #define ICM42607_MCLK_RDY BIT(3) -#define ICM426XX_REG_DEVICE_CONFIG 0x0001 -#define ICM426XX_SPI_MODE_1_2 BIT(0) -#define ICM426XX_SPI_AP_4WIRE BIT(2) +#define ICM42607_REG_DEVICE_CONFIG 0x0001 +#define ICM42607_SPI_MODE_1_2 BIT(0) +#define ICM42607_SPI_AP_4WIRE BIT(2) #define ICM42607_REG_SIGNAL_PATH_RESET 0x0002 #define ICM42607_SOFT_RESET_DEV_CONFIG BIT(4) |