summaryrefslogtreecommitdiff
path: root/driver/temp_sensor/f75303.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver/temp_sensor/f75303.c')
-rw-r--r--driver/temp_sensor/f75303.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/driver/temp_sensor/f75303.c b/driver/temp_sensor/f75303.c
index 6b8895a252..e686537c31 100644
--- a/driver/temp_sensor/f75303.c
+++ b/driver/temp_sensor/f75303.c
@@ -1,4 +1,4 @@
-/* Copyright 2018 The Chromium OS Authors. All rights reserved.
+/* Copyright 2018 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
@@ -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)
@@ -59,7 +58,7 @@ static void f75303_sensor_poll(void)
}
DECLARE_HOOK(HOOK_SECOND, f75303_sensor_poll, HOOK_PRIO_TEMP_SENSOR);
-static int f75303_set_fake_temp(int argc, char **argv)
+static int f75303_set_fake_temp(int argc, const char **argv)
{
int index;
int value;
@@ -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.");