From 11c0ad4a2334595bc249ce98c013986113445aa9 Mon Sep 17 00:00:00 2001 From: Sue Chen Date: Mon, 7 Feb 2022 11:13:54 +0800 Subject: 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 Change-Id: Iee5fac247346dde8995580cfa223dcc851357cc8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3442907 Reviewed-by: Keith Short --- driver/accelgyro_icm42607.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'driver') 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) -- cgit v1.2.1