driver/led/aw20198.c: Format with clang-format
BRANCH=none
TEST=none
static int aw20198_read(struct rgbkbd *ctx, uint8_t addr, uint8_t *value)
{
- return i2c_xfer(ctx->cfg->i2c, AW20198_I2C_ADDR_FLAG,
- &addr, sizeof(addr), value, sizeof(*value));
+ return i2c_xfer(ctx->cfg->i2c, AW20198_I2C_ADDR_FLAG, &addr,
+ sizeof(addr), value, sizeof(*value));
}
static int aw20198_write(struct rgbkbd *ctx, uint8_t addr, uint8_t value)
@@ -31,8 +31,8 @@ static int aw20198_write(struct rgbkbd *ctx, uint8_t addr, uint8_t value)
[1] = value,
};
- return i2c_xfer(ctx->cfg->i2c, AW20198_I2C_ADDR_FLAG,
- buf, sizeof(buf), NULL, 0);
+ return i2c_xfer(ctx->cfg->i2c, AW20198_I2C_ADDR_FLAG, buf, sizeof(buf),
+ NULL, 0);
}
static int aw20198_set_page(struct rgbkbd *ctx, uint8_t page)
@@ -103,8 +103,8 @@ static int aw20198_set_color(struct rgbkbd *ctx, uint8_t offset,
buf[i * SIZE_OF_RGB + 3] = color[i].b;
}
- return i2c_xfer(ctx->cfg->i2c, AW20198_I2C_ADDR_FLAG,
- buf, frame_len, NULL, 0);
+ return i2c_xfer(ctx->cfg->i2c, AW20198_I2C_ADDR_FLAG, buf, frame_len,
+ NULL, 0);
}
static int aw20198_set_scale(struct rgbkbd *ctx, uint8_t offset,
@@ -131,8 +131,8 @@ static int aw20198_set_scale(struct rgbkbd *ctx, uint8_t offset,
buf[i * SIZE_OF_RGB + 3] = scale.b;
}
- return i2c_xfer(ctx->cfg->i2c, AW20198_I2C_ADDR_FLAG,
- buf, frame_len, NULL, 0);
+ return i2c_xfer(ctx->cfg->i2c, AW20198_I2C_ADDR_FLAG, buf, frame_len,
+ NULL, 0);
}
static int aw20198_set_gcc(struct rgbkbd *ctx, uint8_t level)
