driver/als_cm32183.c: Format with clang-format
BRANCH=none
TEST=none
@@ -77,14 +77,13 @@ static int cm32183_read(const struct motion_sensor_t *s, intv3_t v)
return EC_SUCCESS;
}
-static int cm32183_set_range(struct motion_sensor_t *s, int range,
- int rnd)
+static int cm32183_set_range(struct motion_sensor_t *s, int range, int rnd)
{
return EC_SUCCESS;
}
-static int cm32183_set_data_rate(const struct motion_sensor_t *s,
- int rate, int roundup)
+static int cm32183_set_data_rate(const struct motion_sensor_t *s, int rate,
+ int roundup)
{
CM32183_GET_DATA(s)->rate = rate;
return EC_SUCCESS;
@@ -102,8 +101,8 @@ static int cm32183_set_offset(const struct motion_sensor_t *s,
return EC_SUCCESS;
}
-static int cm32183_get_offset(const struct motion_sensor_t *s,
- int16_t *offset, int16_t *temp)
+static int cm32183_get_offset(const struct motion_sensor_t *s, int16_t *offset,
+ int16_t *temp)
{
*offset = CM32183_GET_DATA(s)->offset;
return EC_SUCCESS;
@@ -117,14 +116,14 @@ static int cm32183_init(struct motion_sensor_t *s)
int ret;
int data;
- ret = i2c_write16(s->port, s->i2c_spi_addr_flags,
- CM32183_REG_CONFIGURE, CM32183_REG_CONFIGURE_CH_EN);
+ ret = i2c_write16(s->port, s->i2c_spi_addr_flags, CM32183_REG_CONFIGURE,
+ CM32183_REG_CONFIGURE_CH_EN);
if (ret)
return ret;
- ret = i2c_read16(s->port, s->i2c_spi_addr_flags,
- CM32183_REG_ALS_RESULT, &data);
+ ret = i2c_read16(s->port, s->i2c_spi_addr_flags, CM32183_REG_ALS_RESULT,
+ &data);
if (ret)
return ret;
