diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2022-06-27 14:56:06 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-07-01 04:25:55 +0000 |
commit | 99a0efda69f6d4987859796d6302194bbf8216dd (patch) | |
tree | e8fa860654872b13200f8a988a9551ca825585a6 /driver | |
parent | 282392a94fda321f549f2df296335e7d5548b27c (diff) | |
download | chrome-ec-99a0efda69f6d4987859796d6302194bbf8216dd.tar.gz |
driver/temp_sensor/f75303.c: Format with clang-format
BUG=b:236386294
BRANCH=none
TEST=none
Change-Id: I5a4c60ff4afb3c89f2b4f36529736beea5bb1118
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3730117
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'driver')
-rw-r--r-- | driver/temp_sensor/f75303.c | 10 |
1 files changed, 4 insertions, 6 deletions
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, - "<index> <value>|off", - "Set fake temperature of sensor f75303."); +DECLARE_CONSOLE_COMMAND(f75303, f75303_set_fake_temp, "<index> <value>|off", + "Set fake temperature of sensor f75303."); |