driver: fix function name in icm_common.c
Fix function name SLAVE_GET_SPI_ADDR to support spi accel port.
BRANCH=main
TEST=make buildall -j pass when CONFIG_SPI_ACCEL_PORT defined.
@@ -124,7 +124,7 @@ int icm_write8(const struct motion_sensor_t *s, const int reg, int data)
uint8_t val = data;
ret = icm_spi_raw_write(
- LAVE_GET_SPI_ADDR(s->i2c_spi_addr_flags),
+ SLAVE_GET_SPI_ADDR(s->i2c_spi_addr_flags),
addr, &val, sizeof(val));
#endif
} else {
@@ -154,7 +154,7 @@ int icm_read16(const struct motion_sensor_t *s, const int reg, int *data_ptr)
uint8_t val[2];
ret = icm_spi_raw_read(
- LAVE_GET_SPI_ADDR(s->i2c_spi_addr_flags),
+ SLAVE_GET_SPI_ADDR(s->i2c_spi_addr_flags),
addr, val, sizeof(val));
if (ret == EC_SUCCESS) {
if (I2C_IS_BIG_ENDIAN(s->i2c_spi_addr_flags))
@@ -198,7 +198,7 @@ int icm_write16(const struct motion_sensor_t *s, const int reg, int data)
val[1] = (data >> 8) & 0xFF;
}
ret = icm_spi_raw_write(
- LAVE_GET_SPI_ADDR(s->i2c_spi_addr_flags),
+ SLAVE_GET_SPI_ADDR(s->i2c_spi_addr_flags),
addr, val, sizeof(val));
#endif
} else {
