driver/battery/mm8013.c: Format with clang-format
BRANCH=none
TEST=none
@@ -34,8 +34,8 @@ static int mm8013_read_block(int offset, uint8_t *data, int len)
{
int rv;
- rv = i2c_read_block(I2C_PORT_BATTERY, MM8013_ADDR_FLAGS,
- offset, data, len);
+ rv = i2c_read_block(I2C_PORT_BATTERY, MM8013_ADDR_FLAGS, offset, data,
+ len);
usleep(I2C_WAIT_TIME);
if (rv)
return rv;
@@ -52,8 +52,8 @@ static int battery_current(int *current)
int16_t tmp;
int rv;
- rv = mm8013_read_block(REG_AVERAGE_CURRENT,
- (uint8_t *)&tmp, sizeof(int16_t));
+ rv = mm8013_read_block(REG_AVERAGE_CURRENT, (uint8_t *)&tmp,
+ sizeof(int16_t));
if (rv)
return rv;
*current = tmp;
@@ -66,8 +66,8 @@ int battery_device_name(char *device_name, int buf_size)
int rv;
char out_buf[BATTERY_PACK_INFO_LENGTH + 1];
- rv = mm8013_read_block(REG_PRODUCT_INFORMATION,
- (uint8_t *)out_buf, BATTERY_PACK_INFO_LENGTH);
+ rv = mm8013_read_block(REG_PRODUCT_INFORMATION, (uint8_t *)out_buf,
+ BATTERY_PACK_INFO_LENGTH);
if (rv)
return rv;
