test/powerdemo.c: Format with clang-format
BRANCH=none
TEST=none
@@ -23,7 +23,6 @@ static volatile enum {
POWER_STATE_DOWN2 /* Assert output for 2ms */
} state = POWER_STATE_IDLE;
-
/* Stops the timer. */
static void __stop_timer(void)
{
@@ -33,7 +32,6 @@ static void __stop_timer(void)
LM4_TIMER_ICR(7) = LM4_TIMER_RIS(7);
}
-
/* Starts the timer with the specified delay. If the timer is already
* started, resets it. */
static void __start_timer(int usec)
@@ -46,7 +44,6 @@ static void __start_timer(int usec)
LM4_TIMER_CTL(7) |= 0x01;
}
-
static void __set_state(int new_state, int pin_value, int timeout)
{
LM4_GPIO_DATA(LM4_GPIO_D, 0x08) = (pin_value ? 0x08 : 0);
@@ -57,7 +54,6 @@ static void __set_state(int new_state, int pin_value, int timeout)
state = new_state;
}
-
int power_demo_init(void)
{
volatile uint32_t scratch __attribute__((unused));
@@ -102,7 +98,6 @@ int power_demo_init(void)
return EC_SUCCESS;
}
-
/* GPIO interrupt handler */
static void __gpio_d_interrupt(void)
{
@@ -125,7 +120,6 @@ static void __gpio_d_interrupt(void)
DECLARE_IRQ(LM4_IRQ_GPIOD, __gpio_d_interrupt, 1);
-
/* Timer interrupt handler */
static void __timer_w1_interrupt(void)
{
