summaryrefslogtreecommitdiff
path: root/board/genesis
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-06-27 13:36:31 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-06-30 18:54:53 +0000
commite621d5b501232e442d6ce3c6e9728ee91260f12f (patch)
tree9d1c24dd3747e6ad4487c598a0f4b8d99f3f595b /board/genesis
parent85d997d3ff8a01c9a08d8a6b9990c6bf372884d4 (diff)
downloadchrome-ec-e621d5b501232e442d6ce3c6e9728ee91260f12f.tar.gz
board/genesis/led.c: Format with clang-format
BUG=b:236386294 BRANCH=none TEST=none Change-Id: Id35adf9264a282d76ebdb35ce2d2db498cd6317c Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3728399 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'board/genesis')
-rw-r--r--board/genesis/led.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/board/genesis/led.c b/board/genesis/led.c
index c562dff27e..92f88d4cd7 100644
--- a/board/genesis/led.c
+++ b/board/genesis/led.c
@@ -19,16 +19,16 @@
#include "timer.h"
#include "util.h"
-#define CPRINTS(format, args...) cprints(CC_GPIO, format, ## args)
+#define CPRINTS(format, args...) cprints(CC_GPIO, format, ##args)
/*
* Due to the CSME-Lite processing, upon startup the CPU transitions through
* S0->S3->S5->S3->S0, causing the LED to turn on/off/on, so
* delay turning off the LED during suspend/shutdown.
*/
-#define LED_CPU_DELAY_MS (2000 * MSEC)
+#define LED_CPU_DELAY_MS (2000 * MSEC)
-const enum ec_led_id supported_led_ids[] = {EC_LED_ID_POWER_LED};
+const enum ec_led_id supported_led_ids[] = { EC_LED_ID_POWER_LED };
const int supported_led_ids_count = ARRAY_SIZE(supported_led_ids);
enum led_color {
@@ -89,9 +89,9 @@ static int set_color(enum ec_led_id id, enum led_color color, int duty)
}
}
-#define LED_PULSE_US (2 * SECOND)
+#define LED_PULSE_US (2 * SECOND)
/* 40 msec for nice and smooth transition. */
-#define LED_PULSE_TICK_US (40 * MSEC)
+#define LED_PULSE_TICK_US (40 * MSEC)
/* When pulsing is enabled, brightness is incremented by <duty_inc> every
* <interval> usec from 0 to 100% in LED_PULSE_US usec. Then it's decremented