summaryrefslogtreecommitdiff
path: root/test/battery_get_params_smart.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/battery_get_params_smart.c')
-rw-r--r--test/battery_get_params_smart.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/test/battery_get_params_smart.c b/test/battery_get_params_smart.c
index 3163fb587e..42582df363 100644
--- a/test/battery_get_params_smart.c
+++ b/test/battery_get_params_smart.c
@@ -1,4 +1,4 @@
-/* Copyright 2014 The Chromium OS Authors. All rights reserved.
+/* Copyright 2014 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
@@ -19,7 +19,6 @@ static int fail_on_first, fail_on_last;
static int read_count, write_count;
struct batt_params batt;
-
void battery_compensate_params(struct batt_params *batt)
{
}
@@ -44,17 +43,14 @@ int sb_read(int cmd, int *param)
if (read_count >= fail_on_first && read_count <= fail_on_last)
return EC_ERROR_UNKNOWN;
- return i2c_read16(I2C_PORT_BATTERY, BATTERY_ADDR_FLAGS,
- cmd, param);
+ return i2c_read16(I2C_PORT_BATTERY, BATTERY_ADDR_FLAGS, cmd, param);
}
int sb_write(int cmd, int param)
{
write_count++;
- return i2c_write16(I2C_PORT_BATTERY, BATTERY_ADDR_FLAGS,
- cmd, param);
+ return i2c_write16(I2C_PORT_BATTERY, BATTERY_ADDR_FLAGS, cmd, param);
}
-
/* Tests */
static int test_param_failures(void)
{
@@ -90,7 +86,7 @@ static int test_param_failures(void)
return EC_SUCCESS;
}
-void run_test(int argc, char **argv)
+void run_test(int argc, const char **argv)
{
RUN_TEST(test_param_failures);