diff options
author | Sue Chen <sue.chen@quanta.corp-partner.google.com> | 2022-02-07 11:13:54 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-07-05 05:51:25 +0000 |
commit | d03f6309c11400554b53659d792017f920114951 (patch) | |
tree | c0ac85797d5044a6c97f754de511b58a464c7409 | |
parent | b5022a359c9de2c283e282e3579745b343bba4e3 (diff) | |
download | chrome-ec-d03f6309c11400554b53659d792017f920114951.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/+/3552484
Auto-Submit: Tommy Chung <tommy.chung@quanta.corp-partner.google.com>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Tested-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com>
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
-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 41747fff7a..eda86f61ee 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) |