summaryrefslogtreecommitdiff
path: root/common/led_pwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/led_pwm.c')
-rw-r--r--common/led_pwm.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/common/led_pwm.c b/common/led_pwm.c
index 05fe21e82b..c088ba0b40 100644
--- a/common/led_pwm.c
+++ b/common/led_pwm.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.
*/
@@ -262,10 +262,10 @@ static void update_leds(void)
}
DECLARE_HOOK(HOOK_TICK, update_leds, HOOK_PRIO_DEFAULT);
-#endif/* CONFIG_LED_PWM_TASK_DISABLED */
+#endif /* CONFIG_LED_PWM_TASK_DISABLED */
#ifdef CONFIG_CMD_LEDTEST
-static int command_ledtest(int argc, char **argv)
+static int command_ledtest(int argc, const char **argv)
{
int enable;
int pwm_led_id;
@@ -280,9 +280,8 @@ static int command_ledtest(int argc, char **argv)
led_id = supported_led_ids[pwm_led_id];
if (argc == 2) {
- ccprintf("PWM LED %d: led_id=%d, auto_control=%d\n",
- pwm_led_id, led_id,
- led_auto_control_is_enabled(led_id) != 0);
+ ccprintf("PWM LED %d: led_id=%d, auto_control=%d\n", pwm_led_id,
+ led_id, led_auto_control_is_enabled(led_id) != 0);
return EC_SUCCESS;
}
if (!parse_bool(argv[2], &enable))