driver/accelgyro_icm42607.c: Format with clang-format
BRANCH=none
TEST=none
@@ -156,8 +156,7 @@ static int icm42607_normalize(const struct motion_sensor_t *s, intv3_t v,
v[Z] = (int16_t)UINT16_FROM_BYTE_ARRAY_LE(raw, 4);
/* check if data is valid */
- if (v[X] == ICM42607_INVALID_DATA &&
- v[Y] == ICM42607_INVALID_DATA &&
+ if (v[X] == ICM42607_INVALID_DATA && v[Y] == ICM42607_INVALID_DATA &&
v[Z] == ICM42607_INVALID_DATA) {
return EC_ERROR_INVAL;
}
@@ -363,8 +362,8 @@ static int __maybe_unused icm42607_load_fifo(struct motion_sensor_t *s,
return ret;
for (i = 0; i < count; i += size) {
- size = icm_fifo_decode_packet(&st->fifo_buffer[i],
- &accel, &gyro);
+ size = icm_fifo_decode_packet(&st->fifo_buffer[i], &accel,
+ &gyro);
/* exit if error or FIFO is empty */
if (size <= 0)
return -size;
@@ -612,8 +611,7 @@ out_unlock:
return ret;
}
-static int icm42607_set_range(struct motion_sensor_t *s, int range,
- int rnd)
+static int icm42607_set_range(struct motion_sensor_t *s, int range, int rnd)
{
int reg, ret, reg_val;
int newrange;
