From 99a0efda69f6d4987859796d6302194bbf8216dd Mon Sep 17 00:00:00 2001 From: Jack Rosenthal Date: Mon, 27 Jun 2022 14:56:06 -0600 Subject: driver/temp_sensor/f75303.c: Format with clang-format BUG=b:236386294 BRANCH=none TEST=none Change-Id: I5a4c60ff4afb3c89f2b4f36529736beea5bb1118 Signed-off-by: Jack Rosenthal Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3730117 Reviewed-by: Jeremy Bettis --- driver/temp_sensor/f75303.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'driver') diff --git a/driver/temp_sensor/f75303.c b/driver/temp_sensor/f75303.c index 6b8895a252..0a944f2d8d 100644 --- a/driver/temp_sensor/f75303.c +++ b/driver/temp_sensor/f75303.c @@ -13,15 +13,14 @@ #include "console.h" static int temps[F75303_IDX_COUNT]; -static int8_t fake_temp[F75303_IDX_COUNT] = {-1, -1, -1}; +static int8_t fake_temp[F75303_IDX_COUNT] = { -1, -1, -1 }; /** * Read 8 bits register from temp sensor. */ static int raw_read8(const int offset, int *data) { - return i2c_read8(I2C_PORT_THERMAL, F75303_I2C_ADDR_FLAGS, - offset, data); + return i2c_read8(I2C_PORT_THERMAL, F75303_I2C_ADDR_FLAGS, offset, data); } static int get_temp(const int offset, int *temp) @@ -88,6 +87,5 @@ static int f75303_set_fake_temp(int argc, char **argv) return EC_SUCCESS; } -DECLARE_CONSOLE_COMMAND(f75303, f75303_set_fake_temp, - " |off", - "Set fake temperature of sensor f75303."); +DECLARE_CONSOLE_COMMAND(f75303, f75303_set_fake_temp, " |off", + "Set fake temperature of sensor f75303."); -- cgit v1.2.1